LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-31-2010, 01:55 PM   #1
stvy
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Rep: Reputation: 0
RHEL5 Kickstart config @ everything (all packages) equivalent


Hi,

I am looking into Kickstart installations for Red hat 5.

Previously I used RHELWS4 and I would use the "all packages" flag to get around having to specify all the packages.

For example:

%packages
@ everything
kernel-devel
kernel-largesmp-devel
e2fsprogs
kernel
kernel-largesmp



Would get me everything on the RHELWS4 DVD. From what I can see this option is not present in RHEL5.

Can someone please provide some advice on a way to automatically parse the RHEL5 DVD and generate a list of packages so that I can ensure all the packages are present in the installation?

I imagine I would need to do this for each update of RHEL5 since the package list will evolve over time.

Thanks,

Stvy

Last edited by stvy; 01-31-2010 at 02:18 PM. Reason: added tags
 
Old 02-01-2010, 04:54 AM   #2
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
RHEL 5.x has groups. Yum command for CentOS is
Code:
yum list-groups
. There should be a similar command in up2date.

Installing ALL of the packages is not something I would recommend, but I can think of few reasons you would like to do such a thing.

Simple script:

Code:
list=`ls -C -1 -R`
rm for_install.txt
echo $list > for_install.txt
cat for_install.txt | sort > sorted_install_list.txt
cat for_install.txt | cut -d " " -f1 | awk '{print $4 " " $1}' | sort | uniq > sortedlist.txt
cat sortedlist.txt | awk '/^[0-9]/ { print ""; printf $0} !/^[0-9]/ {printf $0} END {print ""}' > yumlist.txt
I haven't had the time to test it so there could be errors, but yumlist.txt should be long paragraph of filenames that can be inserted directly into yum/up2date command (like in the script below).

This is the "rpm-dephelper" program I created yesterday to help me recompile larger number of my(as in "no other repo has compiled them for CentOS/RHEL") src rpm's for x86_64 platform on the new, clean system (so far I used i386). I derived upper code from this baby:

Code:
#!/bin/bash

# rpm-dephelper
# Author: Ljubomir Ljubojevic <office a plnet.rs>
# 31.01.2010
list=""
list=`ls *src*.rpm`
for i in $list; do
   rpmbuild --rebuild --nobuild -ba $i >& text.txt
   cat text.txt | grep needed >> for_install.txt
done

cat for_install.txt | sort > sorted_install_list.txt
cat for_install.txt | cut -d " " -f1 | awk '{print $4 " " $1}' | sort | uniq > sortedlist.txt
cat sortedlist.txt | awk '/^[0-9]/ { print ""; printf $0} !/^[0-9]/ {printf $0} END {print ""}' > yumlist.txt
rm text.txt

yum install $(cat yumlist.txt)
And "rpm-rebuilder", to ease actual rebuild of src rpm's and of course to log all rebuilding attempts into log files to track down problems:
Code:
#!/bin/bash

# rpm-rebuilder
# Author: Ljubomir Ljubojevic <office a plnet.rs>
# 31.01.2010
list=`ls *src*.rpm`
for i in $list; do
   rpmbuild --rebuild -ba $i 2>&1 | tee $i"_rebuild_log.txt"
done

Last edited by DrLove73; 02-01-2010 at 05:45 AM.
 
  


Reply

Tags
kickstart, rhel5


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL5 - I have RHEL5 DVD , how i install ofice packages like SPREADSHEET ETC, bharath@linux Linux - Newbie 3 10-12-2008 02:24 PM
how to enable package selection in system-config-kickstart in rhel5 mamtasahai1 Linux - Enterprise 3 05-08-2008 09:51 PM
RHEL5 kickstart config file creation problem rado_dimitrov Linux - Enterprise 2 02-13-2008 09:50 AM
command redhat-config-packages --tree=/mnt/cdrom no more on RHEL5, what replace it? hocheetiong Linux - Newbie 2 12-30-2007 10:07 AM
Question about system-config-packages tool in RHEL5 server/client sailershen Red Hat 0 04-27-2007 08:46 PM


All times are GMT -5. The time now is 11:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration