List of packages required by a group?

General support questions
Post Reply
simon@bp
Posts: 44
Joined: 2014/07/31 20:00:37

List of packages required by a group?

Post by simon@bp » 2021/10/20 23:21:06

I am trying to build a spec file for a package that will install (Require) a set of packages. I don't know what the full set is because some of the packages are required as part of a groupinstall.

There appears to be no way to require a package group in a spec file. Is there a way to find the list of packages required by an arbitrary group, so I can add this to the spec file?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: List of packages required by a group?

Post by jlehtone » 2021/10/21 06:32:20

yum group info groupname

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: List of packages required by a group?

Post by TrevorH » 2021/10/21 12:10:05

Also bear in mind that many people will not use groups deliberately to stop the system being polluted with unnecessary packages. Many o fus do a Minimal install and then add individual packages and let yum pull in the dependencies for the thing we actually want.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: List of packages required by a group?

Post by jlehtone » 2021/10/21 13:48:53

That reminds me of:
* Package yum-utils has command show-installed. It does list the packages that are currently installed, but in "compact form". Rather than listing all, it lists the packages and groups that you have to explicitly install ... and you will get the rest via dependencies.
The output has "human", "yum", and "kickstart" formats.

Alas, there is no dnf version.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: List of packages required by a group?

Post by TrevorH » 2021/10/21 14:14:20

IIRC show-installed also takes a --kickstart parameter that makes it emit the list in a format ready to be put in a kickstart file.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply