You are not logged in.

#1 2007-04-07 10:17:27

fancris3
Member
Registered: 2007-03-18
Posts: 67

pacman -Sy -r ...

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

#2 2007-04-07 11:50:59

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: pacman -Sy -r ...

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

#3 2007-04-07 17:30:27

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: pacman -Sy -r ...

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

#4 2007-04-07 21:32:37

fancris3
Member
Registered: 2007-03-18
Posts: 67

Re: pacman -Sy -r ...

Oh.I want -r to be prefix for rest only if I don't say another path smile
Thanks for answer

Offline

Board footer

Powered by FluxBB