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:
When the whole procedure ends, open a Midnight Commander with root permissions, and go to the mount-point of the partition for the repositories we made. On our example to /mnt/repos.
Create the following directories:
Inside the above directory create a new directory, depending on our architecture:
Finally create three more directories inside the directories you have just created:
From now on you will have to be very careful as long as everything will be ruined if something goes wrong.
Depending, once again, on our architecture:
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
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
f. Create this symlink
/etc/abs.conf -> /mnt/repos/arch/amd64/abs.conf
/etc/pacman.conf -> /mnt/repos/arch/amd64/pacman.conf
/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/
/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/
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:
The system should be ok !
It is obvious that this repository could be located on a network partition.