Update %package section

Petr Hracek phracek at redhat.com
Mon Apr 11 08:35:59 UTC 2016


Hi folks,

I would like to ask you on one thing.
With pykickstart I read anaconda-ks.cfg file.
And I would like to modify %package section from Python script.
I would like to delete some of the groups and some of then add it.

Can you advice me how to do it?

My code snippet looks like:

~~~
from pykickstart.parser import *
....
ks = KickstartParser(makeVersion())
ks.readKickstart(system_ks_path)
ks.handler.packages.add(packages)
~~~

How can I do it?

Greetings

-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek at redhat.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20160411/c82eaff8/attachment.htm>


More information about the Kickstart-list mailing list