On Sat, 2011-04-23 at 20:46 -0500, Hugh Brown wrote: > > On 04/23/2011 07:10 PM, Robert G. (Doc) Savage wrote: > > I'm very close to the point where I move up from RHEL5 to RHEL6. I the > > five+ months since RHEL6 was released, EPEL6 and Scientific Linux 6 have > > both been released. These will give me access to most of the rpm > > packages I use that are not available in RHEL6 server. > > > > Because one does not upgrade between major RHEL versions, I cannot just > > let the system automatically upgrade what's already installed. To guide > > me, I'd like to generate a list of all 2,759 installed packages sorted > > by their source repo. But when I run "yum list installed" it doesn't > > tell me the repo each package came from. > > > > Is there such an option, even undocumented? > > > > --Doc > > > > > > Of course, after I ask google, I find an easier solution: > > yum -q --disablerepo=\* --enablerepo=rhel-x86_64-server > --enablerepo=epel\* list extras >SL-rpm-list > > yum -q --disablerepo=\* --enablerepo=rhel-x86_64-server > --enablerepo=<whatever the name is for the SLrepo>\* list extras > >EPEL-rpm-list > > If you have any manually installed packages, they will show up in both > lists.
Interesting approach. I wish I could use the more up-to-date version of yum from Fedora. It would simply tell me the name of the repo each package came from. It's times like this I wonder why there aren't more home-grown yum utilities that can query a yum database and pull out stuff (like source repo) as needed. I *think* the only packages I need from SL will be the OpenOffice.org stuff that Red Hat stopped distributing in RHEL5 Server. (Still peeved about that.) From EPEL I need fail2ban and a few others. I'll also need video packages from elrepo and rpmfusion. Wish me luck. --Doc _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
