Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#12348 - pacman cache dir not following root set by -r

Attached to Project: Pacman
Opened by freza (freza) - Friday, 05 December 2008, 08:32 GMT
Last edited by Dan McGee (toofishes) - Friday, 05 December 2008, 13:55 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture i686
Severity Low
Priority Normal
Reported Version 3.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
When setting pacman root via -r /newroot parameter, all directories (instalation, database) are based on this path except cache location which remains /var/cache/pacman/db instead of /newroot/var/cache/pacman/db

Steps to Reproduce:
This task depends upon

Closed by  Dan McGee (toofishes)
Friday, 05 December 2008, 13:55 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Pacman-intended behavior
Comment by Dan McGee (toofishes) - Friday, 05 December 2008, 13:10 GMT
Did you read the manpage? This is intended behavior. Set it explicitly if you need to.
Comment by freza (freza) - Friday, 05 December 2008, 13:22 GMT
You're right, in manpage only database and logfile are mentioned. Can this also change root for cache dir? If there is reason that I don't see for this behavior, it can be mentioned in instalation wiki http://wiki.archlinux.org/index.php/Install_From_Existing_Linux because i was suprised by pacman making cache in my existing distro.
Comment by Dan McGee (toofishes) - Friday, 05 December 2008, 13:27 GMT
Please add any necessary instructions to the wiki, it is editable for that reason. :)

There is an explicit reason for this- if your host system was Arch, using that cache directory by default will save you from having two or three different package caches lying around on your system, causing you unnecessary downloads and taking up package space.
Comment by freza (freza) - Friday, 05 December 2008, 13:34 GMT
OK thanks for info Dan.

Loading...