Sunday, June 16, 2013

               
   
   
   

How to configure yum group repository in RHEL6

Q.I have installed local repository but "yum groupinstall" command is not working I got  error "Error: No group data available in the configured repositories"?


If you want to install group packages via yum then you need to create the group repository  


Here is step by step installation for the yum group repository 


1.Make sure you have installed yum-utils
#rpm -qa | grep -i yum-utils
yum-utils-1.1.30-6.el6.noarch

2.You need to get the  *-comps-rhel6-Server.xml  file from the original CD/ISO repodata dir and copy to the local repository /path/to/RPMS directory.
#cp *-comps-rhel6-Server.xml /path/to/RPMS/comps.xml

3. Then change the directory to local  /path/to/RPMS & then run the createrepo with -g option
#cd /path/to/RPMS
#createrepo -g comps.xml /path/to/RPMs

4. Before trying group options first clean all cache DB
#yum clean all

5. Now you can check the group list
#yum grouplist

6. Install the  group package eg. "Internet Browser"
# yum groupinstall "Internet Browser"

Sample output :

Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Group Process
Package firefox-3.6.17-1.el6_0.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package nspluginwrapper.i686 0:1.3.0-14.el6 will be installed
---> Package totem-mozplugin.i686 0:2.28.6-2.el6 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


=============================================================================================================================
Package                           Arch                   Version                         Repository                    Size
=============================================================================================================================
Installing:
nspluginwrapper                   i686                   1.3.0-14.el6                    local.repo                   162 k
totem-mozplugin                   i686                   2.28.6-2.el6                    local.repo                   165 k


Transaction Summary
=============================================================================================================================
Install       2 Package(s)


Total download size: 328 k
Installed size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                         18 MB/s | 328 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
 Installing : nspluginwrapper-1.3.0-14.el6.i686                                                                         1/2
 Installing : totem-mozplugin-2.28.6-2.el6.i686                                                                         2/2
duration: 84(ms)
Installed products updated.


Installed:
 nspluginwrapper.i686 0:1.3.0-14.el6                           totem-mozplugin.i686 0:2.28.6-2.el6                          


Complete!
That’s it enjoy groupinstall  !!
If you like please share it

4 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

 
Follow my blog with Bloglovin UA-41829888-1