How to list all installed packages coming from certain repo
eg. community
?
I want plain output (just a list of names) like this:
zynaddsubfx
xsel
...
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityHow to list all installed packages coming from certain repo
eg. community
?
I want plain output (just a list of names) like this:
zynaddsubfx
xsel
...
Try with paclist
:
paclist - List all packages installed from a given repo
e.g. to list all packages installed from community
:
paclist community
If you want only the names (w/o version number) you could use something like:
awk '{print $1}' <(paclist community)
or
cut -d' ' -f1 <(paclist community)
paclist
does not seem to be a thing now; pacman -S --search paclist
yields nothing; also, issuing paclist
at the command line is not recognized.
– Eric Smith
Aug 7 '18 at 0:59
paclist
is a very real thing on my up-to-date archlinux setup...
– don_crissti
Aug 7 '18 at 9:45
pacman --files --search paclist
; apparently in the pacman-contrib
package which I did not have installed.
– Eric Smith
Aug 8 '18 at 1:48
There is no need to install pacman-contrib
package to achieve that goal:
pacman -Sl reponame | grep "\[installed\]"