Shashikant shah

Friday, 25 April 2014

How to enable grouplist in yum : RHEL-5

How to enable grouplist in yum

You may encounter an error in yum if you type the following command :

[root@shashi ~]# yum grouplist

Error: No group data available for configured repositories.

In order to solve this problem do the following:

 [root@shashi ~]# yum install yum-utils

Copy your entire dvd to any location in your system
and configure yum.

I have copied my entire DVD to the
‘/var/ftp/pub/repo/’ directory.

And I have already configured yum.

In order to enable group list feature execute the following.

[root@shashi ~]# createrepo –g /var/ftp/pub/repo/server/repodata/21f8a36d9
bca1b5b606702c5ce46b65017360348cace161b7910edfaa3cb087
-comps-rhel6-Server.xml     var/ftp/pub/repo/Packages

# The starting filename in the repodata folder can be anything
# but you have to select the one which ends
# with ‘-comps-rhel6-Server.xml’.

Clean all the yum cache

[root@shashi ~]# yum clean all

Make the cache again.

[root@shashi ~]# yum makecache

Check if the grouplist feature is working.

[root@shashi ~]# yum grouplist

No comments:

Post a Comment