I once saw a wrapper-script for pacman in the forums that was basically a short-hand version of common pacman tasks. Over the last couple years, I’ve expanded on it. It does just about everything I need it to and its real basic. I call it pm and here are the tasks it covers:
pm - pacman management tasks: 1 | oneshot - install package(s) as a dependency c | clean - cleans package cache of packages no longer installed d | depclean - remove dependencies no longer used e | explicit - force package to be recognized as necessary f | forcerem - force remove package (no dependency check) i | install - install a package l | list - list files installed by the package o | owns - package that owns a file n | info - information about the package p | local - install package locally (a pkg.tar.gz file) q | query - query for an installed package (Q for details) r | remove - remove a package s | search - search for a package u | upgrade - sync database and upgrade system y | sync - sync database --- optimize - optimize database by placing files in order on disk pkglist - create list of official and local installed packages
Good for me to have this around so I can remember everything :). AUR link.