Tidy-rpm-cache
From Notes_Wiki
tidy-rpm-cache.py (previous rm_obsolete_rpms.py)
We can download latest version of tidy-rpm from internet and then use it to delete obsolete packages from yum-cahce. This script saves considerable disk-space and keeps only latest version of files in cache / repository.
To see list of obsolete RPMs inside a directory recursively and then get option of deleting obsolete RPMs use:
tidy-rpm-cache.py --dir=/var/cache/yum