# 1st step install expac $ sudo pacman -S expac # 2nd step run $ expac "%n %m" -l' ' -Q $(pacman -Qq) | sort -rhk 2 | less