2 echo '-----------------------------------------------------------------------'
3 echo 'A simple python script to clean up the /var/cache/pacman/pkg directory.'
4 echo 'More versatile than pacman -Sc in that you can select how many old'
5 echo 'versions to keep.'
7 echo 'Usage: cache_clean {-p} {-v} <# of copies to keep>'
8 echo ' # of copies to keep - (required) how many generations of each package.'
9 echo ' -p - (optional) preview what would be deleted.'
10 echo ' -v - (optional) show deleted packages.'
12 echo 'Note that you must be root to run this script.'
13 echo '-----------------------------------------------------------------------'