Pacman-contrib

From wikinotes

A collection of helper scripts for working with pacman.

Install

pacman -S pacman-contrib

Usage

paccache

NOTE:

The -u param targets uninstalled packages.
That doesn't mean it keeps the installed version,
It means that it preserves the full history of any installed package.

paccache -rv --min-mtime '30 days ago'

paccache -r    # delete  all but 3x most recent versions of package
paccache -d    # dry-run delete all but 3x most recent versions of package
paccache -dv   # print files that would be deleted

paccache

checkupdates

paclog-pkglist

pacscripts

pacsearch

pacsort

pactree

rankmirrors

updpkgsums