LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-14-2008, 09:50 AM   #1
Mike Crowley
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
Question 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.

Regards, Mike
 
Old 05-14-2008, 07:09 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi Mike Crowley, Welcome to lq. Is this what you're looking for?
Good luck. ;-)
 
Old 05-14-2008, 07:48 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Mike Crowley View Post
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 View Post
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").


Quote:
Originally Posted by Mike Crowley View Post
rpm or up2date man pages.
See 'man rpm': "-g, --group".
 
Old 05-15-2008, 05:25 AM   #4
Mike Crowley
LQ Newbie
 
Registered: May 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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.

Thanks again, Mike.
 
Old 05-15-2008, 07:10 AM   #5
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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. ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find a package installed ? jabka Debian 3 09-06-2007 07:59 PM
How to find out if you have a specific package installed? AriciU Slackware 2 07-08-2007 10:58 PM
How to find if package is installed Redbone981sl Ubuntu 4 01-23-2007 06:03 PM
install can't find installed rpms vijayind Linux - Newbie 1 12-12-2004 04:32 AM
Where to find my installed rpms in Mandrake 9.1? Spica Linux - Newbie 15 08-21-2003 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration