≡ Menu

Redhat Linux yum grouplist and groupinstall Option Not Working

I‘m trying to install all the default packages by group using ‘yum groupinstall groupname‘ command under RHEL v5.x. But, grouplist, groupinstall, and groupdelete options are not working with yum. How do I fix this issue and make sure yum command works with software groups under Redhat Enterprise Linux to increase my productivity?

You need to install a package called yum-utils. It is a collection of utilities and examples for the yum package manager. It includes utilities by different authors that make yum easier and more powerful to use. These tools include: debuginfo-install, package-cleanup, repoclosure, repodiff, repo-graph, repomanage, repoquery, repo-rss, reposync,
repotrack, verifytree, yum-builddep, yum-complete-transaction, yumdownloader, yum-debug-dump and yum-groups-manager.

Install yum-utils

Type the following command:
# yum install yum-utils
To list software groups enter:
# yum grouplist
Sample output:

Loaded plugins: rhnplugin, security
Setting up Group Process
Installed Groups:
   Engineering and Scientific
   Graphics
   Network Servers
   System Tools
Available Groups:
   Administration Tools
   Authoring and Publishing
   Development Tools
   Editors
   Educational Software
   FTP Server
   Fedora Packager
   GNOME Desktop Environment
   GNOME Software Development
   Games and Entertainment
   Graphical Internet
   Hardware Support
   KDE (K Desktop Environment)
   KDE Software Development
   Mail Server
   News Server
   Office/Productivity
   Sound and Video
   Text-based Internet
   Web Development
   Web Server
   Window Managers
   X Window System
Done

To install “Web server” group, enter:
# yum groupinstall "Web server"

Share this tutorial on:
{ 5 comments… add one }
  • Matt March 5, 2009, 8:19 pm

    Also if you are using Red Hat Satellite you will have to be subscribed to one of the base RH channels. Cloned channels have not worked for me in doing any group actions.

  • Dave Mackey March 17, 2010, 12:09 am

    And what if your repository doesn’t have it? I downloaded the tar.gz file from baseurl but how do I install it?

  • Anderson Bispo August 24, 2011, 12:45 am

    Many thanks… Very usefull…

  • Joseph February 21, 2012, 9:34 am

    I got the same output from “yum grouplist”, but I think it should be wrong? E.g I’m sure I have got “Development Tools” installed, but why it doesn’t in “Installed Group”… I’m on this issue.

  • sachin December 7, 2015, 11:11 am

    Hi when i run a command yum grouplist, or yum groupinstall ” “,Below error i faced.

    yum grouplist
    Loading "security" plugin
    Loading "installonlyn" plugin
    Setting up Group Process
    Setting up repositories
    comps-rhel5-cluster-st.xm 100% |=========================| 102 kB    00:00
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in ?
        yummain.main(sys.argv[1:])
      File "/usr/share/yum-cli/yummain.py", line 102, in main
        result, resultmsgs = do()
      File "/usr/share/yum-cli/cli.py", line 359, in doCommands
        return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
      File "/usr/share/yum-cli/yumcommands.py", line 213, in doCommand
        GroupCommand.doCommand(self, base, basecmd, extcmds)
      File "/usr/share/yum-cli/yumcommands.py", line 201, in doCommand
        base.doGroupSetup()
      File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 408, in doGroupSetup
        self.comps.add(groupfile)
      File "/usr/lib/python2.4/site-packages/yum/comps.py", line 337, in add
        for event, elem in parser:
      File "", line 64, in __iter__
    SyntaxError: not well-formed (invalid token): line 1, column 0
    

    Please do needful

    Regards
    SAchin

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , , , , , , ,