[tools] mrepo, comps.xml, and yum grouplist

Steve Cleveland Steve.Cleveland at oregonstate.edu
Thu Nov 6 00:04:03 CET 2008


You shouldn't need any extra options in the configuration files.  If you 
put the xml file in your OS directory (/mnt/data/mrepo/centos4-x86_64 in 
your case) and call it <nameofrepo>-comps.xml (base-comps.xml in your 
case), mrepo should integrate it automatically.

  - Steve

Shane Dixon wrote:
> So I took your advice and ran this manually using:
> 
> "sudo createrepo
> -g /mnt/data/mrepo/centos4-x86_64/base/comps.xml /var/www/mrepo/centos4-x86_64/RPMS.base/"
> 
> and that did actually work.  I can now see repodata/comps.xml.  I still
> can't get mrepo to run this automatically.  I'm using the line:
> 
> createrepo-options = -g /mnt/data/mrepo/centos4-x86_64/base/comps.xml
> 
> Does it just never call createrepo?  Do I need to add a different line
> to my metadata variable?  Right now I'm generating "metadata = repomd"
> 
> I tried "repodata" and "yum" and they don't seem to work.
> 
> --
> Shane
> 
> On Wed, 2008-11-05 at 14:50 -0700, Shane Dixon wrote:
>> I tried the following:
>>
>> * Added this line to my mrepo.conf:
>> createrepo-options =
>> -g /var/www/mrepo/centos4-x86_64/RPMS.base/repodata/yumgroups.xml
>>
>> * Downloaded yumgroups.xml from
>> http://mirror.centos.org/centos/4/os/x86_64/repodata/yumgroups.xml into
>> the
>> location /var/www/mrepo/centos4-x86_64/RPMS.base/repodata/yumgroups.xml
>>
>> * Ran mrepo again (mrepo -vvvg centos4-x86_64)
>> * Tried running on client machine (sudo yum grouplist)
>>
>> It didn't seem to solve the issue.  I also tried renaming yumgroups to
>> comps.xml and adjusting the config file accordingly and still no luck.
>>
>> --
>> Shane
>>
>> On Wed, 2008-11-05 at 13:32 -0800, Cliff wrote:
>>> I'm new to this but I believe the the comps.xml goes in the 'repodata'
>>> dir of the repo and you can create the groups with "createrepo -g
>>> /path/to/comps.xml /path/to/repo"
>>>
>>> root at builder repodata]# pwd
>>> /var/buildsystem/kickstart/RHEL/5.2/x86_64/Server/repodata
>>> [root at builder repodata]# ls comps-rhel5-server-core.xml
>>> comps-rhel5-server-core.xml
>>>
>>> At least that's how I did it in rhel, to create a repo based on the
>>> ISO's (plus a few custom pkgs) that lets me also use the groups during
>>> kickstart.
>>>
>>> Hope that helps.
>>>
>>> On Wed, Nov 5, 2008 at 11:55 AM, Shane Dixon <shane.dixon at atmel.com> wrote:
>>>> I've seen it alluded to on many sites, but haven't found
>>>> anything/anybody to tell me how this works.  I've setup a repo using
>>>> mrepo and I want the grouplist to work.  I didn't install from the ISOs.
>>>> I can find a comps.xml located at:
>>>>
>>>> http://mirror.centos.org/centos/4.7/os/x86_64/CentOS/base/
>>>>
>>>> I just have no idea where to put it
>>>>
>>>>
>>>> Here are the versions I'm running:
>>>>
>>>> $ mrepo --version
>>>> mrepo 0.8.4
>>>> Written by Dag Wieers <dag at wieers.com>
>>>>
>>>> platform posix/linux2
>>>> python 2.4.3 (#1, Jan 14 2008, 18:31:21)
>>>> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
>>>>
>>>> build revision $Rev: 4991 $
>>>>
>>>> $ createrepo --version
>>>> 0.4.9
>>>>
>>>> I'm running Here is my configuration:
>>>>
>>>> [main]
>>>> srcdir = /mnt/data/mrepo
>>>> wwwdir = /var/www/mrepo
>>>> confdir = /etc/mrepo.conf.d
>>>> arch = x86_64
>>>> createrepo-options = -g /var/www/mrepo/centos4-x86_64/comps.xml
>>>>
>>>> [centos4]
>>>> name = CentOS 4
>>>> release = 4
>>>> arch = x86_64
>>>> iso = centos-$release-$arch-disc?.iso
>>>>
>>>> base = http://mirror.centos.org/centos/$release/os/$arch/CentOS/RPMS/
>>>> ### Additional repositories
>>>> updates = http://mirror.centos.org/centos/$release/updates/$arch/RPMS/
>>>> fasttrack =
>>>> http://mirror.centos.org/centos/$release/fasttrack/$arch/RPMS/
>>>> centosplus =
>>>> http://mirror.centos.org/centos/$release/centosplus/$arch/RPMS/
>>>> extras = http://mirror.centos.org/centos/$release/extras/$arch/RPMS/
>>>> addons = http://mirror.centos.org/centos/$release/addons/$arch/RPMS/
>>>> contrib = http://mirror.centos.org/centos/$release/contrib/$arch/RPMS/
>>>>
>>>> Any suggestions?
>>>>
>>>>
>>>> _______________________________________________
>>>> tools mailing list
>>>> tools at lists.rpmforge.net
>>>> http://lists.rpmforge.net/mailman/listinfo/tools
>>>>



More information about the tools mailing list