parsing the comps file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello --

I'm writing a cgi script that generates a customized kickstart
configuration file.  I'm wondering if anyone has any ideas about parsing
the comps file?

It's a pretty simple file to parse.  Something as simple as

egrep '^[0-9]' will give the toplevel tags, but I'd like to be able to
generate a list of optional, default, and required top-level packages.
Is there a document somewhere that describes the file format?  I'm
unsure what the various numerical tags represent.

For example,

The first line of the file contains "4" with nothing after it.  What
does this mean?

Some of the various top-level groups are denoted with 1, some with 0...
etc.

1 Base { .... 

}

0 KDE {

}

What do the numerical tags represent?  

Thanks,

Aaron Bennett

PS.  As this kickstart web interface progresses towards usability, I'll
be glad to distribute it to interested parties if there is an interest.

+----------------------
|Aaron Bennett
|UNIX Systems Administrator
|Franklin W. Olin College of Engineering
|abennett@xxxxxxxx

BEGIN:VCARD
VERSION:2.1
N:Bennett;Aaron
FN:Aaron Bennett (abennett@xxxxxxxx)
ORG:Franklin W. Olin College of Engineering
TITLE:Unix Systems Administrator
TEL;WORK;VOICE:(781) 292-2438
TEL;CELL;VOICE:(781) 858-9233
ADR;WORK:;;1735 Great Plain Avenue;Needham;MA;02492-1245;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:1735 Great Plain Avenue=0D=0ANeedham, MA 02492-1245=0D=0AUnited States of Am=
erica
EMAIL;PREF;INTERNET:abennett@xxxxxxxx
REV:20020906T191218Z
END:VCARD

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux