Web QrooniX

Wednesday, May 14, 2008

HorniX - Part 1

I have rolled out the initial ISO of the installer/distro that I have spinned for the company I'm working for. Here are the steps (from my patchy memory) in customizing/spinning.

If you have a defined set of RPMs, put it in one group in comps.xml, this will save you some time, rather than editing the supplied comps.xml. How do we implement that? On the machine where the RPMs are installed, issue rpm -qa > rpms.txt. Have a comps.xml that is something like this:

My Custom Distro.


Base System
Various core pieces of the system.


Place all the RPMs in one directory (e.g. /path/to/build/RPMS/). To copy only the defined RPMS, execute this line:

rpm -qa --queryformat "%{name}-%{version}-%{release}.%{arch}.rpm\n" | sort > packages.txt

Have a simple script to copy the unmodified RPMs from the original ISO/DVD:

for file in `cat packages.txt`
cp /media/cdrom/Server/$file

Then copy the rebuilt/custom RPMs from /usr/src/redhat/RPMS/{arch}/ to /path/to/build/RPMS/

Copy the xml file inside the directory where the rpms are located (e.g. /path/to/build/RPMS/), cd to the directory and issue:

createrepo -c comps.xml .

This will produce a directory named repodata with the following files:

comps.xml filelists.xml.gz other.xml.gz primary.xml.gz repomd.xml

That's it for now :) Too sleepy and a bit drunk to type :)

Labels: , , ,

just stumbled on to your page and was wondering which company here in the philippines you work with and if you might be interested in joining a new start up or even doing some contract/freelance work.

my name is JR - 0917 847 / 7467
JR at

would definitely like to tap you or anyone you might know that is familiar with Nagios Development.

looking forward to hearing from you and thanks for your time
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?