improvement for smart

oc2pus at arcor.de oc2pus at arcor.de
Mon Jun 19 12:17:13 PDT 2006


Hi,

in apt there was a functionality "autoclean" (delete unreachable packages from 
cache).

To have the same feature in smart would be great, even better to delete only 
the "old" versions in cache and keep the newest (in case of a reinstall of a 
package)

by googling around I found this script "repomanage.py"

repomanage.py --help
      repomanage [--old] [--new] path
      -o --old - print the older packages
      -n --new - print the newest packages
      -s --space - space separated output, not newline
      -h --help - duh
By default it will output the full path to the newest packages in the path.

download-url: http://linux.duke.edu/projects/yum/download/misc/ 

This script fits perfect my wishes :)
with the command "repomanage.py --old /path/to/smart-cache | xargs rm -f " the 
cache can be cleaned out from old versions.

Perhaps a python-guru can integrate that script into smart ? or package it as 
a contribution into the smart-RPMs.

have fun
oc2pus



More information about the Smart mailing list