Kickstart file based on current configuration

Bob Kinney bc98kinney at yahoo.com
Sun Apr 27 07:06:03 UTC 2008




--- On Sat, 4/26/08, Bill Davidsen <davidsen at tmr.com> wrote:

> From: Bill Davidsen <davidsen at tmr.com>
> Subject: Re: Kickstart file based on current configuration
> To: "For users of Fedora" <fedora-list at redhat.com>
> Date: Saturday, April 26, 2008, 10:07 PM
> Bob Kinney wrote:
> > How can I make a kickstart file that is based on the
> packages I currently 
> > have installed? 
> > 
> > I still have anaconda-ks.cfg, but of course I've
> added a bunch of stuff
> > since then.
> > 
> Get the full list with "yum list" and look at the
> ones marked 
> "installed." You might have to manually separate
> out non-fedora versions.
> 
> Something like:
> 
> yum list | tee all.pkgs | grep installed >installed.pkgs
> sed -n /\.lvn6/p installed.pkgs >livna-instl.pkgs
> sed -n /\.fc6/p installed.pkgs >fc6-instl.pkgs
> 
> Example for fc6, but you should get the idea.
> 

Great tip!  Using "yum list installed" you get a list of the installed
packages.  With minor hacking this can be added to the original kickstart
file.  

Since I want to use this to streamline upgrades, I wonder if it would be
best to let yum install the add-ons to ensure proper dependency checking.




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




More information about the fedora-list mailing list