FS#57667 - [pacman-contrib] paccache does not respect CleanMethod = KeepInstalled in pacman.conf
Attached to Project:
Pacman
Opened by Maxim Baz (maximbaz) - Tuesday, 27 February 2018, 18:41 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 27 February 2018, 19:57 GMT
Opened by Maxim Baz (maximbaz) - Tuesday, 27 February 2018, 18:41 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 27 February 2018, 19:57 GMT
|
Details
The default value for CleanMethod is KeepInstalled, it means
that `pacman -Sc` should remove cached packages that are no
longer installed.
paccache however does not detect uninstalled packages and thus leaves them in cache. A common scenario would be: - Install packageA - Understand that you don't need packageA, remove it - Run paccache -r to cleanup the cache Expected: - With CleanMethod = KeepInstalled, packageA should be removed from the cache Actual: - packageA is left in cache forever. |
This task depends upon
Closed by Dave Reisner (falconindy)
Tuesday, 27 February 2018, 19:57 GMT
Reason for closing: Works for me
Additional comments about closing: Working as intended. A two-step process is required here.
Tuesday, 27 February 2018, 19:57 GMT
Reason for closing: Works for me
Additional comments about closing: Working as intended. A two-step process is required here.
To be honest, it's a bit weird that paccache is meant to read pacman.conf for the list of cachedirs, but not for the clean method for these cachedirs, but I'm fine with a CLI flag as long as I can make it work.
That's not the behavior I see, and it isn't how the code reads. Could you squint harder at the output of paccache and ensure that it really is removing *installed* packages with the -u flag? If so, please supply the output of 'bash -x paccache -duk0'
Should I close the ticket then? `paccache -r; paccache -ruk0` is an acceptable solution to me.