I want to list all packages I have installed on a system from a given repo using yum. Usually to do this I use yum list installed | grep "something". But now I am faced with a problem. The repo I am interested in does not have that “something” for me to grep. The packages from that repo do not have any distinctive characteristics. How do I list them?
I looked through yum man pages but did not find anything. I wonder if there are other commands I could use.
On newer versions of yum, this information is stored in the “yumdb” when the package is installed. This is the only 100% accurate way to get the information, and you can use:
(or repoquery and grep — don’t grep yum output).
However the command “find-repos-of-install” was part of yum-utils for a while which did the best guess without that information:
http://james.fedorapeople.org/yum/commands/find-repos-of-install.py
As floyd said, a lot of repos. include a unique “dist” tag in their release, and you can look for that … however from what you said, I guess that isn’t the case for you?