| Article Index |
|---|
| Arch Linux Installation Guide |
| Page 2 |
| Page 3 |
| Page 4 |
| Page 5 |
| Page 6 |
| Page 7 |
| Page 8 |
| Page 9 |
| Page 10 |
| Page 11 |
| Page 12 |
| Page 13 |
| Page 14 |
| Page 15 |
| Page 16 |
| Page 17 |
| Page 18 |
| Page 19 |
| Page 20 |
| All Pages |
II-3 Local Repository
Previously, the creation of a local repository was needed, which is very useful. As long as the substructure exists, lets see how we can handle it. Firstly, lets see how the packets of Arch are named and how they should be named:
<program>-<version>-<packet revision>-<architecture>.pkg.tar.gz
The <architecture> variable can only recieve two values:
for amd64
x86_64
for x86
i686
For example if we have:
program: gimageview
version: 0.2.27
packet revision: 4
The packet will be named, depending on the architecture for which it is designed:
for amd64
gimageview-0.2.27-4-x86_64.pkg.tar.gz
for x86
gimageview-0.2.27-4-i686.pkg.tar.gz
Our packets ought to be named this way. In case they are named differently we must rename them.
All these files should be placed on the packages directory we have created before on our local repository. For example:
for amd64
/mnt/repos/arch-local/amd64/custom/packages/
for x86
/mnt/repos/arch-local/x86/custom/packages/
Finally, for every packet on the packages directory, we should have found a text file named:
PKGBUILD
This file should be placed in its own index, inside the "list" directory (always depending on our architecture).
for amd64
/mnt/repos/arch-local/amd64/custom/list/
for x86
/mnt/repos/arch-local/x86/custom/list/
This directory should be named this way:
<program>-<version>-<packet revision>
So, for example, for the above packet (gimageview), depending on its architecture, we should create the index:
for amd64
/mnt/repos/arch-local/amd64/custom/list/gimageview-0.2.27-4/
for x86
/mnt/repos/arch-local/x86/custom/list/gimageview-0.2.27-4/
and place there its PKGBUILD.
Concluding, things are simple:
- Deleting packet from local repository
- erase the packet from the "packages" directory
- erase the whole index from the "list" directory
- Adding packet from local repository
- place the packet in the "packages" directory
- create index using the PKGBUILD of the packet, in the "list" directory
- Renewal of the packet with a new version
- erase the old one as above
- add the new one as above
While finished, dont forget to run once ti update script:
update-local-repo custom amd64
or
update-local-repo custom x86
and redo SYNC with the pacman:
pacman -Sy