Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-15-2013, 11:50 AM   #1
Registered: Jun 2012
Posts: 47

Rep: Reputation: Disabled
How to build repodata correctly for custom repository

I am building a RHEL 6.3 iso. My kickstart script calls out a few packages from the rhel optional and supplementary repos. However i did not grap the entire repositories from red hat because they wouldn't fit on a dvd. How do i rebuild the repository so it builds all the dependencies, group data and build tree correctly? I tried
createrepo "`pwd`"
createrepo -g "`pwd`"

createrepo -g comps.xml "`pwd`"

I'm kind of just screwing around at this point. I build the iso and try to install but it bombs and says "unable to read group information from repositories. This is a problem with the generation of your install tree"

or when i include the comps.xml file I get "An unhandled exception has occurred. this is most likely a bug. Please save a copy of the detailed exception and file a bug report."
Old 02-16-2013, 08:19 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
This is not the complete answer, but to create a local copy of the repos
I hope this will help somewhat
1 members found this post helpful.
Old 02-19-2013, 01:20 PM   #3
Registered: Jun 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thanks Chris. I figured it out yesterday. The problem was that i was creating a blank comps.xml file. When i copied the 6.3 heirarchy onto my filesystem it came with their comps.xml file. It was just named weird because it has a hash value in front of it. Anyways i ran: createrepo --database -g c28thisisthehashvalue-comps.xml "`pwd`" and all my group info and tree structure built correctly. Then i had to fix up a few dependencies. All installs are running smoothly now hope this helps someone else.


repository, rhel 6.3

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
Build a custom distro with custom boot and libraries adrian2009 Linux - Distributions 3 08-09-2012 03:16 AM
How to create a custom repository in Suse? zulfilee SUSE / openSUSE 2 11-17-2009 05:26 AM
Add a custom-built rpm to a repository neildomo Red Hat 6 10-15-2008 09:11 PM
installing custom rpms from http:// repository cachemonet Red Hat 5 10-11-2007 05:21 AM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM > Forums > Linux Forums > Linux - Server

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

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