LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-26-2013, 03:51 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Question YUM through ISO files with grouplist/groupinstall options


Dear All,

I have a CentOS 6.2 server and I am looking to have a way out to create a yum repository through ISO files for RHEL 5.X servers in which yum grouplist works.

There are numerous links/guides to create yum through ISO files, but I have not found any of them in which yum grouplist works OR repository is created through createrepo -g (where 'g' stands for group xml file)

Till date, I used to copy the contents of the ISO in some other directory (say /RPM). Now, I have a client's requirement to mount ISO files shared through CIFS and I am stuck.

Thankfully, this has been addressed in RHEL6.X, where you can directly use an ISO without using createrepo command.

Forgive my ignorance on this topic.
 
Old 07-27-2013, 10:13 AM   #2
Linux MR
Member
 
Registered: May 2013
Location: Pacific North West
Distribution: Red Hat, Scientific, Fedora, openSuSE, Mageia, Mint, Arch
Posts: 57

Rep: Reputation: Disabled
This one is actually from the archives
Source: http://www.linuxquestions.org/questi...sitory-571604/

Hope that helps

Quote:
This process is pretty easy, just two steps:

create a file in the groups format used by yum
tell createrepo to include that group file in your repository.
Step 1

You can either open a text editor and create the groups xml file manually or you can run the yum-groups-manager command from yum-utils.

Run the groups-create command like this:

yum-groups-manager -n "My Group" --id=mygroup --save=mygroups.xml --mandatory yum glibc rpm
And you'll end up with a file like this:

<!DOCTYPE comps PUBLIC "-//Red Hat, Inc.//DTD Comps info//EN" "comps.dtd">
<comps>
<group>
<id>mygroup</id>
<default>False</default>
<uservisible>True</uservisible>
<display_order>1024</display_order>
<name>My group</name>
<description></description>
<packagelist>
<packagereq type="mandatory">glibc</packagereq>
<packagereq type="mandatory">rpm</packagereq>
<packagereq type="mandatory">yum</packagereq>
</packagelist>
</group>
</comps>
Step 2

To include this in a repository, just tell createrepo to use it when making or remaking your repository.

createrepo -g /path/to/mygroups.xml /srv/my/repo
 
Old 07-27-2013, 02:54 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Original Poster
Rep: Reputation: 107Reputation: 107
Lightbulb

Thanks Linux MR,

I solved the issue with an easier alternative. This is what I was missing.

On CentOS/RHEL 6.X machines, we have to use createrepo --checksum sha instead of only createrepo.

So these are my overall steps.

Code:
ln -s /path/to/mounted/iso/Server   /var/www/html/Server
createrepo --checksum sha -g /path/to/mounted/iso/Server/repodata/comps-*.xml /var/www/html/Server

Thanks all for your time and efforts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] yum groupinstall not working fcfury Red Hat 2 12-14-2012 08:30 AM
Configure Group yum groupinstall senthilguru Linux - Server 1 07-18-2011 07:34 PM
yum groupinstall Clustering vinaytp Linux - Newbie 2 11-24-2009 11:37 AM
yum grouplist setup on custom repo rowanu Linux - Software 2 07-15-2008 05:02 AM
yum grouplist doesn't work sycamorex Linux - Software 2 06-02-2008 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
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