Yum supports the idea of
"Package groups". Here's a listing of available groups on my RHEL5.4 system, after a vanilla installation:
Code:
[root@host1 ~]# yum grouplist
Loaded plugins: rhnplugin, security
Setting up Group Process
Installed Groups:
Editors
Legacy Network Server
Mail Server
Network Servers
System Tools
Available Groups:
Administration Tools
Authoring and Publishing
DNS Name Server
...
...
Is there a way to tell which Package Groups will provide a particular individual package?
For example, "emacs" is provided by the "Editor" package group, the "Development Environment" package group, and possibly others. I'm looking for a theoretical command like "yum groupinfo-whatprovides emacs"?
Here's what I am doing right now, to query all of the package groups for the 'httpd' package. This is a little clunky, and I was looking for a simpler method.
Code:
[root@host1 ~]# yum grouplist >/tmp/yum.grouplist
[root@host1 ~]# cat /tmp/yum.grouplist |while read GROUP; do echo GROUP=$GROUP; yum groupinfo "$GROUP" |grep -i httpd; done
GROUP=Editors
GROUP=Legacy Network Server
...
...
GROUP=Server Configuration Tools
system-config-httpd
GROUP=Sound and Video
GROUP=Text-based Internet
GROUP=Web Server
httpd
httpd-manual
httpd-suexec
GROUP=Windows File Server
GROUP=X Software Development
GROUP=X Window System
Thank you,
-= Stefan