| Arch Linux Installation Guide |
|
|
| Written by axel | ||||||||||||||||||||||
II-4 Repositories Preservation
You will need this part only if you have created a separate partition for repositories and you want to keep a local copy of the repositories packages. Open a new Console with root access and hit: abs
Create the following directories: arch
for amd64 amd64
x86
etc-pacman-d var-cache-pacman-pkg var-lib-pacman-sync
Depending, once again, on our architecture: for amd64 a. We make copies of these files to the next ones /etc/pacman.d/ -> /mnt/repos/arch/amd64/etc-pacman-d/ /var/cache/pacman/pkg/ -> /mnt/repos/arch/amd64/var-cache-pacman-pkg/ /var/lib/pacman/sync/ -> /mnt/repos/arch/amd64/var-lib-pacman-sync/
b. Delete the following folders /etc/pacman.d /var/cache/pacman/pkg /var/lib/pacman/sync
c. Create the following symlinks /etc/pacman.d -> /mnt/repos/arch/amd64/etc-pacman-d /var/cache/pacman/pkg -> /mnt/repos/arch/amd64/var-cache-pacman-pkg /var/lib/pacman/sync -> /mnt/repos/arch/amd64/var-lib-pacman-sync
d. Copy abs.conf b pacman.conf from one file to the other /etc/ -> /mnt/repos/arch/amd64/
e. Delete those files /etc/abs.conf /etc/pacman.conf
f. Create this symlink /etc/abs.conf -> /mnt/repos/arch/amd64/abs.conf /etc/pacman.conf -> /mnt/repos/arch/amd64/pacman.conf
for x86 a. We make copies of these files to the next ones /etc/pacman.d/ -> /mnt/repos/arch/x86/etc-pacman-d/ /var/cache/pacman/pkg/ -> /mnt/repos/arch/x86/var-cache-pacman-pkg/ /var/lib/pacman/sync/ -> /mnt/repos/arch/x86/var-lib-pacman-sync/
b. Delete the following folders /etc/pacman.d /var/cache/pacman/pkg /var/lib/pacman/sync
c. Create the following symlinks /etc/pacman.d -> /mnt/repos/arch/x86/etc-pacman-d /var/cache/pacman/pkg -> /mnt/repos/arch/x86/var-cache-pacman-pkg /var/lib/pacman/sync -> /mnt/repos/arch/x86/var-lib-pacman-syncg
d. Copy abs.conf & pacman.conf from one file to the other /etc/ -> /mnt/repos/arch/x86/
e. Delete those files /etc/abs.conf /etc/pacman.conf
f. Create these symlinks /etc/abs.conf -> /mnt/repos/arch/x86/abs.conf /etc/pacman.conf -> /mnt/repos/arch/x86/pacman.conf
Go to the root directory "/" in both Midnight Commander's windows and exit with F10. If everything is right: Giving: pacman -Sy
It is obvious that this repository could be located on a network partition.
|
||||||||||||||||||||||
| Last Updated ( Monday, 01 December 2008 ) | ||||||||||||||||||||||
| < Prev | Next > |
|---|





