11

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
...

2 Answers 2

10

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)
3
  • 1
    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
    Commented Aug 7, 2018 at 0:59
  • @EricSmith - not sure what you mean... paclist is a very real thing on my up-to-date archlinux setup... Commented Aug 7, 2018 at 9:45
  • 3
    Found it; the key command; pacman --files --search paclist; apparently in the pacman-contrib package which I did not have installed.
    – Eric Smith
    Commented Aug 8, 2018 at 1:48
9

There is no need to install pacman-contrib package to achieve that goal:

pacman -Sl reponame | grep "\[installed\]"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .