Projects/Purge old RPMs

From juliano.info

Jump to: navigation, search

purge-old-rpms.py

Last version: 1.0
License: GPL
Languages: Python
Status: Finished

purge-old-rpms.py is a simple Python script that helps cleaning up old versions of packages left by Linux distro's software updaters like yum. You just run the script pointing to the package cache directory and it will scan all packages files, and for each unique package found, it will compare the versions of all files found, removing every one but the newest.

This is very useful for managing my Fedora Linux installations, where I leave keepcache=1 in /etc/yum.conf, in order to keep all downloaded packages and reuse them to update the other computers in my network.

Download

Views