Populating packages to install with kickstart

Issues related to applications and software problems
Post Reply
joefish
Posts: 2
Joined: 2011/07/14 23:50:47

Populating packages to install with kickstart

Post by joefish » 2011/07/14 23:56:15

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.

pjwelsh
Posts: 2598
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: Populating packages to install with kickstart

Post by pjwelsh » 2011/07/15 02:25:14

Your best bet is to actually install a single example system and use the corresponding /root/anaconda-ks.cfg as the major basis.

User avatar
TrevorH
Forum Moderator
Posts: 27687
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Populating packages to install with kickstart

Post by TrevorH » 2011/07/15 08:39:10

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]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Populating packages to install with kickstart

Post by pschaff » 2011/07/16 16:37:02

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.

Post Reply

Return to “CentOS 6 - Software Support”