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#18603 - [pacman] removes wrong files

Attached to Project: Pacman
Opened by Kyle Keen (keenerd) - Monday, 08 March 2010, 04:00 GMT
Last edited by Dan Griffiths (Ghost1227) - Monday, 08 March 2010, 04:37 GMT
Task Type General Gripe
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Pacman will remove a lot of files that are not packages or database listings. It uses a very heavy handed function, rmrf() to nuke everything. Despite there being a predictable naming scheme for just about all the files.



Additional info:
pacman 3.3.3 (only half evil)


Steps to reproduce:
pacman -Scc --cachedir /

This task depends upon

Closed by  Dan Griffiths (Ghost1227)
Monday, 08 March 2010, 04:37 GMT
Reason for closing:  Not a bug
Additional comments about closing:  It specified 'cache directory: /' if you're not paying enough attention to say 'oh crap, deleting everything in root is bad' that's your problem... try taking away your own access to sudo.
Comment by Allan McRae (Allan) - Monday, 08 March 2010, 04:19 GMT
As far as pacman is concerned, the naming of a package file is irrelevant. It is what is inside that counts!

> pacman -U IAMNOTAPACKAGE
loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading abs [#####################] 100%

Comment by Allan McRae (Allan) - Monday, 08 March 2010, 04:20 GMT
Also:

> pacman -Scc --cachedir /
Cache directory: /
Do you want to remove ALL files from cache? [y/N]

It is quite clear what that operation will be doing.

Loading...