When I run the command yum erase $(rpm -qa |grep gnome), I get the following output:

 Package                          Arch        Version               Repository                                     Size
 gnome-backgrounds                noarch      2.28.0-2.el6          @anaconda-CentOS-201303020151.x86_64/6.4      9.5 M
 gnome-bluetooth-libs             x86_64      2.28.6-8.el6          @anaconda-CentOS-201303020151.x86_64/6.4      165 k
 gnome-doc-utils-stylesheets      noarch      0.18.1-1.el6          @anaconda-CentOS-201303020151.x86_64/6.4      1.3 M

What I want to do is list out all of the items in the "Repository" column for all packages on my system and/or do a query for all packages in the "@anaconda-CentOS-201303020151.x86_64/6.4" repository. Any of the "repo" options in yum that I can see only list base, epel, etc., and yum repolist all doesn't mention "@anaconda-CentOS-201303020151.x86_64/6.4" at all. So how do I see it and what's in it?


yum list installed | grep -F "anaconda-CentOS-201303020151.x86_64/6.4"

  • Oddly enough, piping the output formatted it in a way that gave potentially bad results, but the simple yum list installed formatted the output properly, so I got what I wanted. – DrStrangepork Dec 30 '14 at 18:09
  • Does that list every package installed, or only the "main" packages and not dependencies (that have to be installed along with the main one) – Xen2050 Dec 30 '14 at 20:01
  • AFAIK, it list every package, even dependencies and such. – NuTTyX Dec 31 '14 at 0:00
  • Same for almost all of the deb tools too, unfortunately – Xen2050 Dec 31 '14 at 2:47

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.