LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-02-2010, 10:31 AM   #1
tmurray3
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
yum and comps file is empty/damaged


I have setup a local repository containing several .rpm files. I created a comps.xml file outlining the category and groups for the local repository. However, when I issue the yum grouplist command, I get the following error:

Failed to add groups file for repository: localRepo - comps file is empty/damaged

However, if I try to install one of the the packages in the repository, it works just fine.

Here are the steps I took to create the repodata:

The comps.xml and repository are stored in the directory:
/var/www/html/myrepo/x86_64

cd /var/www/html/myrepo/x86_64
createrepo -g comps.xml .

This created a /var/www/html/myrepo/x86_64/repodata directory which contains the comps.xml and comps.xml.gz file.



Here is my comps.xml file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps PUBLIC "-//Red Hat, Inc.//DTD Comps info//EN" "comps.dtd">
<comps>
  <group>
   <id>NodeManager</id>
   <default>true</default>
   <uservisible>true</uservisible>
   <display_order>1</display_order>
   <name>Node Manager</name>
   <description>This group manages the node system resources and reports info back to the Service Manager.</description>
    <packagelist>
      <packagereq type="default">pxNodeManager-1.0-1</packagereq>
    </packagelist>
  </group>        
  <category>
   <id>CustomSoftware</id>
   <display_order>1</display_order>
   <name>Custom Software </name>
   <description>Custom Software Suite </description>
    <grouplist>
     <groupid>NodeManager</groupid>
    </grouplist>
  </category>
</comps>
 
Old 12-09-2010, 11:35 PM   #2
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 113

Rep: Reputation: 22
Maybe try the command?

/usr/bin/yum-groups-manager -n "My Group" --id=mygroup --save=mygroups.xml --mandatory yum glibc rpm


http://yum.baseurl.org/wiki/YumGroups
 
  


Reply



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
fsck damaged my file system Dr_Death_UAE Linux - General 10 02-03-2010 08:21 AM
Help recovering damaged tar.gz file 0x29a Linux - Software 6 10-28-2008 03:28 PM
File test to make sure files aren't damaged/corrupt bluedevlx Linux - Newbie 1 11-04-2004 12:11 PM
File Test to make sure files aren't corrupt/damaged bluedevlx Programming 2 11-04-2004 11:50 AM
YUM: Damaged header.info the_styler Fedora 6 10-25-2004 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:50 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