Fedora core installing package groups with yum

yum is an interactive tool or automated update program which can be used for maintaining systems using rpm (read as RedHat and friends).

It allows you to install single package or group of package. For example let us say you are running a web server with PHP+MySQL. Now you need complete development environment i.e gcc C/C++ compilers, subversion cvs, perl and related libraries. You can install them in one shot with the following command:
# yum groupinstall 'Development Tools'

You can remove all developer tools with the following command:
# yum groupremove 'Development Tools'

Or better update all tools to latest version:
# yum groupupdate 'Development Tools'

You can obtain list of all groups with the following command:
# yum grouplist | less


Installed Groups:
   Compatibility Arch Support
   MySQL Database
   PostgreSQL Database
   System Tools
   Text-based Internet
   Web Server
Available Groups:
   Administration Tools
   Authoring and Publishing
   Compatibility Arch Development Support
   DNS Name Server
   Development Tools
   Engineering and Scientific
   FTP Server
   GNOME Desktop Environment
   GNOME Software Development
   Games and Entertainment
   Graphical Internet
   Java Development
   KDE (K Desktop Environment)
   KDE Software Development
   Language Support
   Legacy Network Server
   Legacy Software Development
   Mail Server
   Network Servers
   News Server
   Printing Support
   Server Configuration Tools
   Sound and Video
   Windows File Server
 X Software Development
   X Window System
   XFCE Software Development

You can also gather information about all packages that belongs to a group:
# yum groupinfo 'Development Tools'

This is a handy feature, to install or remove software(s). If any one has more information about similar options (w/o front-end) for apt-get command, then please comment it back below.

See also:

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 4 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
4 comments… add one
  • Linux Geke Nov 4, 2008 @ 22:04

    Thanks for the info; however, how does one create the groups in the first place? When I type yum grouplist, I get an error that says, “No Groups on which to run command”.

  • metaylor Dec 19, 2008 @ 20:01

    I found this information to be very helpful

  • Michael Jun 18, 2009 @ 23:17

    Is there also a yum command to display to what group a specific package belongs?

    For example if I want to know to what group the package fail2ban belongs?
    yum info fail2ban does not give the group of the package 🙁
    Anyone who knows how the query this with yum?

    Thanks in advance.

  • Michael Jul 29, 2010 @ 3:10

    This was very helpful! Thank You, I am very new to Linux and recently installed Fedora 13 from the Live CD, however it doesn’t include most of the packages with this install, and I couldn’t compile and “make” half the stuff I had, and this helped me. Thanks!

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum