How do I find out what rpms are installed when Package Group Q is selected
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I find out what rpms are installed when Package Group Q is selected
When installing RedHat AS4 there is a page for Package Group Selection from which I can opt to have thinks like "Administration Tools" or "Text-based Internet" installed.
What I'd like to know is whether there is a way of finding out which rpms will be installed for a given package group. Or, to put it another way, given an package name is it possible to find out which package group it belongs to. I haven't been able to find anything appropriate in either the rpm or up2date man pages.
finding out which rpms will be installed for a given package group.
Using your RPM installations "groups" file (it's at 'rpm -ql rpm | grep GROUPS') you get the group names. With 'yum' you can for instance 'yum grouplist "Applications/System"' to get a list of all packages in that group. To get a list of all installed packages sorted by group you can for instance do: 'cat `rpm -ql rpm | grep GROUPS`|while read GROUP; do echo "${GROUP}: "; rpm -qg "${GROUP}"|sort; echo; done'.
Quote:
Originally Posted by Mike Crowley
given an package name (..) find out which package group it belongs to.
'rpm --qf "%{GROUP}\n" -q package_name', where package_name is the name of the package (not "package-1.2.3").
Thanks for the swift replies, guys. The information you gave has been very useful.
unSpawn: I had seen the reference to [-g,--group GROUP] in the rpm man page but hadn't found any explanation of what GROUP stood for until now. Now that I know of the existence of /usr/share/doc/rpm-4.3.3/GROUPS I have been able to tie up packages with their GROUP using the command line you gave.
It is a pity, though, that RedHat haven't made this group list match the package group selection list displayed during installation.
peacedog: The web page you provided a link to matches (as far as i can recall) the installation selection page. Is that something you generated yourself or was it part of an installation? I don't have it, or anything like it, on my systems but they are built for a very reduced set of package groups.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
Quote:
peacedog: The web page you provided a link to matches (as far as i can recall) the installation selection page. Is that something you generated yourself or was it part of an installation? I don't have it, or anything like it, on my systems but they are built for a very reduced set of package groups.
Not my creation at all, I don't have a Redhat installation any longer. I just googled it up based on your question. There is more about the comps.xml here.
Good luck. ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.