[BBLISA] Linux kickstart packages
Mark Lamourine
mlamourine at comcast.net
Thu Jun 7 19:17:33 EDT 2007
On Wed, 2007-06-06 at 13:29 -0400, Adam Moskowitz wrote:
> In a typical lunix ks.cfg file in the %packages" section there are
> individual package names as well as package "bundles," in the form
> "@bundle".
>
> Can someone please tell me where or how I find out what packages are
> included in each of these bundles?
>
> I know this information has to be out there somewhere but I'm not
> finding it. Maybe my google-fu is weak today?
The hands-dirty method is to look at the comps.xml file. This is the
software package database. I seem to remember that there were also
published modules to view and manipulate the comps.xml, but I don't
remember them offhand.
Ohh.. A python library rhpl.comps
http://rhlinux.redhat.com/anaconda/comps.html
Hrrm. Redhat's moved rhpl.comps to yum.comps. And updated it.
Try this:
-------------------------------
#!/usr/bin/python
import yum.comps
import sys
comps = yum.comps.Comps()
comps.add(sys.argv[1])
for group in comps.get_groups():
pkgs = []
print group
for package in group.packages:
print " ", package
----------------
The python docs are available by
$ pydoc yum.comps
Sorting and filtering by manditory etc are left to the reader...
- Mark
> Thanks,
> AdamM
>
> _______________________________________________
> bblisa mailing list
> bblisa at bblisa.org
> http://www.bblisa.org/mailman/listinfo/bblisa
More information about the bblisa
mailing list