Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted
yum list installed | grep @epel
share|improve this answer
add comment

You could check the Vendor header of installed rpms.

This example lists all package from VideoLAN repository:

 rpm -q -a --qf "%{Name}:%{Vendor}\n" \
     | grep -F ":VideoLAN Project (http://www.videolan.org)"

Obviously, you need to determine if the Vendor header of your repository is unique among different repositories.

share|improve this answer
    
There isn't a one-to-one mapping between Vendor and repos, and in some cases, the Vendor string is blank. –  Lorin Hochstein Oct 13 '11 at 16:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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