Pacman-contrib
From wikinotes
A collection of helper scripts for working with pacman.
Install
pacman -S pacman-contrib
Usage
paccache
paccache -ru # delete all but the 3x most recent versions of a package, (only uninstalled packages) paccache -rud # dry-run of deletepaccache
checkupdates
paclog-pkglist
pacscripts
pacsearch
pacsort
pactree
rankmirrors
updpkgsums