pacman -Q, but without default/base packages?
I would like to have a list of all packages I have installed, I tried to use pacman -Q but that's all packages on the system, I want ones that aren't installed by "default" (by pacstrap /mnt base).
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 7d2b09
5 comments
I made a bunch of experiments to try to answer this, and came up with this end result here:
This command line compares a list of explicitly installed packages with the ones out of the base group, then prints names and descriptions of those.
It does not display any packages that were installed as dependencies.
For just a list of package names, only run the first part:
If you want to list all packages, including the ones that are installed as a dependency, things get more complicated and look like this:
Here are the previous command lines with line-breaks:
You sir, are a gentleman and a scholar.
See pacman/Tips and tricks, specifically...
list explicitly installed packages not in the
baseorbase-develgroups:or list all installed packages unrequired by other packages, and which are not in the
baseorbase-develgroups:pacman -Qs | grep -v \(base\) | grep ^local
But it doesn't filter dependencies
All explicitly installed packages not in base nor base-devel with size and description ->
(you need to install "expac" for this)