Monday, January 27, 2020

a pacman tip

Found at: https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks

This pacman command returns a list of installed packages on an Arch system, from smallest to largest:

$ LC_ALL=C pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h

This is how the output at the end looks here:



This expac command can be used for about the same thing; it lists the sizes of installed packages and their dependencies:

$ expac -H M '%m\t%n' | sort -h


Not as cool as Debian's dpigs command, which I mentioned in an earlier post, but simple enough to copy and paste onto the command line.

No comments: