LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs > JockVSJock
User Name
Password

Notices


Rate this Entry

How to setup yum groupinstall for RHEL6

Posted 02-01-2016 at 08:47 PM by JockVSJock
Updated 02-01-2016 at 08:57 PM by JockVSJock

Just found out that we can install packages under Red Hat as a group, instead of individual ones, which will be a big time saver, along with trying to remember the name of the individual packages. I've seen a number of tutorials online for this and I think they either fall short or are not clear. So here is my attempt at it and this blog entry assumes the end user has some basic Linux skills and basic knowledge of Red Hat.

Step-by-step instructions on setting up the following:

- setup local yum repo

- copy down the correct xml file

- run the commands to set it yum and test

I'm using RHEL6 as a VM, however this should work for either CentOS or Scientific Linux (I've only tested this on RHEL6).

After starting up your VM, log in, and lets first create the local repo. All commands are run as user root.

Mount the install DVD
Code:
mount -t iso9660 /dev/sr0 /media/dvd
Test that the DVD has mounted and you should see it
Code:
mount
Change into the RHEL6 DVD
Code:
cd /media/dvd/Packages
Make a directory to copy all rpm down to
Code:
mkdir -p /tmp/local_repo
Copy all rpm in the Packages directory to /tmp/local_repo
Code:
cp -R * /tmp/local_repo
Change into the repodata directory on the RHEL DVD and copy down the comps-rhel6-Serverl.xml.gz. This file will have a long string preceding the comps part of the file name
Code:
cp -i (file-name-here)-comps-rhel6-Server.xml.gz /tmp/local_repo
Change into /tmp/local_repo and setup the local repository with the following package and following command:
Code:
rpm -ivh createrepo python-deltarpm deltarpm
Unzip the comps-rhel6-Server.xml.gz file
Code:
gunzip (file-name-here)-comps-rhel6-Server.xml.gz
Run the commands to createrepo with the -g flag (groupfile)
Code:
createrepo -g /tmp/local_repo/(file-name-here)-comps-rhel6-Server.xml  /tmp/local_repo
Create the local repo by doing the following:
Code:
cd /etc/yum.repos.d 

vim local.repo
For the local.repo file populate it with the following:
Code:
[server] 
name=RHEL6
baseurl=file:///tmp/local_repo 
enabled=1 
gpgcheck=0
Save the file and run the following commands
Code:
yum clean all ; yum makecache ; yum grouplist ; yum list all
To test, install the Virtualization Group, which would be KVM software suite, with the following commands
Code:
yum groupinstall -y "Virtualization ; yum groupinstall -y "Virtualization Client" ; yum groupinstall -y "Virtualization Platform"
Posted in Uncategorized
Views 3171 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration