FS#11049 - Teach pacman how to clean the cach with respect to some history preserving

Attached to Project: Pacman
Opened by Mathieu Clabaut (mathieu.clabaut) - Tuesday, 29 July 2008, 14:17 GMT
Last edited by Xavier (shining) - Monday, 18 August 2008, 08:53 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 3.1.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

See http://bbs.archlinux.org/viewtopic.php?pid=398937 for a python script that clean /var/cache/pacman, while preserving some history for the packages (for example the last 3 versions).

for example, pacman -Sc 3 would be a nice UI.
This task depends upon

Closed by  Xavier (shining)
Monday, 18 August 2008, 08:53 GMT
Reason for closing:  Won't implement
Additional comments about closing:  No one seems to be interested for implementing this.
If you are, you can reopen and submit a patch adding a new CleanMethod
Comment by Aaron Griffin (phrakture) - Tuesday, 29 July 2008, 15:38 GMT
Sounds like this could be integrated with the new CleanMethod setting
Comment by Dan McGee (toofishes) - Saturday, 09 August 2008, 15:14 GMT
It is highly based on package version and naming heuristics, which we want to stay away from if possible. The current code is just fine with reading a 'foobar' filename in and processing it correctly. I don't think this is something easily done with the cleanup code in pacman and is probably best done in an external script like this.
Comment by Nagy Gabor (combo) - Friday, 15 August 2008, 11:44 GMT
"The current code is just fine with reading a 'foobar' filename in and processing it correctly."
In sync_cleancache we do pkg_load and pkg_vercmp.

It is possible to collect packages by name in cache and sort them by version; then finally keep the last 3 versions for each package.

But I am not sure that it would be a useful feature.

Loading...