Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which yum group(s) contain a given package?

Tags:

redhat

rpm

yum

Is there a way to ask yum which group(s) contain a given package? I know how to ask what packages are in a given group, and could write a quick script to trawl over all of the groups, but it would be nice to have a simpler mechanism than that.

like image 708
John Rix Avatar asked Jan 21 '14 11:01

John Rix


People also ask

What is a yum package group?

The package groups are a well-known feature of the yum command to group multiple packages under a single name. Even though yum will be replaced with dnf in future releases of RHEL, the syntax and features will stay the same (at least this is the case in Fedora 22 where you can replace yum with dnf without any problem).

What are package groups in Linux?

A package group is a collection of packages that serve a common purpose, for instance System Tools or Sound and Video. Installing a package group pulls a set of dependent packages, saving time considerably.


1 Answers

If you are only looking for a 'simpler mechanism' to be used by a human and don't need it in some kind of script or so, you might get by with this one:

yum groupinfo '*' | less +/sendmail-cf

Of course, replace sendmail-cf with the package name you're interested in.

like image 195
kkeller Avatar answered Sep 20 '22 00:09

kkeller