Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there anyway I can get the package list off of a live Linux box and put that into a kickstart?


Edit: Sorry...This is on a Fedora box

share|improve this question
    
My answer still applies, as Fedora uses RPM for package management –  Rilindo Jan 13 '12 at 23:40
add comment

2 Answers

up vote 3 down vote accepted

For the common ones:

Debian/Ubuntu/Mint (for Debian/pkg type distros):

dpkg -l

(Incidentally, on Debian/Ubuntu, you use preseed)

For RedHat/CentOS/SuSE/Fedora (RedHat/RPM type distros):

rpm -qa

As a side note, if this is a relatively fresh install (no packages added after installation), you can use the ananconda-ks.cfg file and use that as base kickstart, as that contains the list of packages plus other configuration setting that was set and insatlled during the initial setup.

share|improve this answer
add comment

For a shorter list, you can list the package groups with yum:

# yum grouplist
Loaded plugins: changelog, security
Setting up Group Process
Installed Groups:
   Base
   Desktop
   Desktop Platform
   Graphical Administration Tools
   Legacy UNIX compatibility
   Networking Tools
   Performance Tools
   Perl Support
   Web Server
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.