Edit RPM repository comps.xml for custom package groups


If you maintain your own RPM repository, you may find it useful to modify comps.xml to include rpms for your own software that you’ve built, or packages you’re rebuiding from newer distributions or porting from others.
scissors-cutting
Existing groups can be modified or you can create new groups entirely. You can also change whether a package is brought in by default, optional, mandatory, or conditional (only included if their requires package is installed)

The syntax for adding a package to a group is pretty simple:

Validate your changes using xmllint. If you’ve forgotten to include a closing tag or messed it up some other way, it will let you know what and where the problem is.

Example of a typical typing error:

Once you’ve rebuilt your repository with the new and improved comps.xml, you can install using yum or kickstart for your own distributions.

If you find your new group isn’t found or a package you added to an existing group doesn’t show up, you may need to refresh your yum data.

This happens when your client has updated within the cache time frame. You can change the expire time in /etc/yum.conf or just clean out the metadata or all.



Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">