[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-livecd-list] [Utility] - Script to generate kickstart %packages section



Hi,

I was wondering about an easier way to include all packages actually
installed on system in the %packages section of a kickstart file,
using as few lines as possible, with groups, individual packages and
exclusions, so I decided to create a BASH script to help doing that:
getPackages.sh.

If you want to test, just download it, give execution permission, take
a comps.xml file and run it, as follows:

$ chmod +x getPackages.sh
$ su -c 'yum makecache'
password:
$ zcat /var/cache/yum/fedora/Fedora-9-comps.xml.gz > comps.xml
$ ./getPackages.sh

You're all welcome to test, modify and redistribute the code. I hope
this can be useful.

Best regards,

-- 
Davidson Paulo
Linux System Administrator
LPI Certified Level 1: LPI000132770
Revista Fedora Brasil, Editor-In-Chief
Fedora Project, Ambassador
http://daveandnaty.blogspot.com/
http://davidsonenatalia.blogspot.com/

Attachment: getPackages.sh
Description: Bourne shell script


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]