Page 1 of 1

Populating packages to install with kickstart

Posted: 2011/07/14 23:56:15
by joefish
I'm trying to create a kickstart file for automated installs (I'm using the graphical kickstart creator), and am up to the part where I can select packages to install.

Problem is, there are hundreds of packages to choose from. The list of packages I would like matches that currently installed on this system. What is the easiest way to get that information into my kickstart file? I don't want to have to manually select each one.

If it helps, my system was basically set up with "Virtual Host" as it's install type, plus some options selected from the "Desktops" category.

Thanks for your help.

Re: Populating packages to install with kickstart

Posted: 2011/07/15 02:25:14
by pjwelsh
Your best bet is to actually install a single example system and use the corresponding /root/anaconda-ks.cfg as the major basis.

Re: Populating packages to install with kickstart

Posted: 2011/07/15 08:39:10
by TrevorH
If you have a system with the set of packages you want to have installed on it then why not just run

[code]
rpm -qa --qf '%{name}\n' | sort -u >> mykickstart.ks
[/code]

Populating packages to install with kickstart

Posted: 2011/07/16 16:37:02
by pschaff
Looks like a couple of good answers already, so just let me welcome you to the CentOS fora and recommend the links in my signature.

If the solutions here are suitable for you please respond with a reply including [SOLVED] in the subject so a moderator can appropriately mark the topic.