Pacman - some useful commands

Check past activity

Table of contents

No heading

No headings in the article.

To get a list of the last installed packages, you can run:

grep -i installed /var/log/pacman.log

List all installed packages:

pacman -Qe

List all installed packages with description (bash):

expac -H M '%-20n\t%10d' $(pacman -Qe)

Remove orphans:

pacman -Rns $(pacman -Qtdq)

Reference for more