You are not logged in.
Pages: 1
I have pacman 3.0.1
[root@x mnt]# pacman -Sy -r /mnt/a -b /mnt/b --cachedir /var/cache/pacman/pkg/ kernel-headers
:: Synchronizing package databases...
testing 1.9K 89.5K/s 00:00:00 [###################################################################################] 100%
current 72.9K 58.0K/s 00:00:01 [###################################################################################] 100%
community 162.2K 58.7K/s 00:00:03 [###################################################################################] 100%
unstable 15.1K 35.0K/s 00:00:00 [###################################################################################] 100%
kdemod 18.1K 84.9K/s 00:00:00 [###################################################################################] 100%
resolving dependencies... done.
looking for inter-conflicts... done.
Targets: kernel-headers-2.6.20-1
Total Package Size: 0.57 MB
Proceed with installation? [Y/n] y
:: Retrieving packages from current...
warning: no /mnt/a//var/cache/pacman/pkg/ cache exists, creating...
kernel-headers 585.5K 46.5K/s 00:00:13 [###################################################################################] 100%
checking package integrity... done.
cleaning up... done.
(1/1) checking for file conflicts [###################################################################################] 100%
(1/1) installing kernel-headers [###################################################################################] 100%
[root@x mnt]#
database goes in /mnt/a/mnt/b/ .
--cachedir ignores /var/cache/pacman/pkg and make a new cachedir in /mnt/a/var/cache/pacman/pkg .
What have I done wrong ?
Offline
For as far as I now, if you use the -r option to specify another install-root, pacman assumes that everything, including the pacman-cache is located in that intall-root.
You could do this:
# mkdir -p /mnt/a/var/cache/pacman/pkg
# mount --bind /var/cache/pacman/pkg /mnt/a/var/cache/pacman/pkg
# pacman.static -Sy -r /mnt/a kernel
Your db would be in your install-root, but it should be as far as i can tell, because this is also the location of your locally installed package-list (but i could be wrong on this last point...)
Last edited by klixon (2007-04-07 11:51:18)
Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!
Offline
Yes, the install root (with -r or --root) is prefixed to any other path specified on the command line.
Try running with the -v option to see exactly what paths are used.
Offline
Oh.I want -r to be prefix for rest only if I don't say another path
Thanks for answer
Offline
Pages: 1