Installing one more rpm in %post

Ajay Mulwani ajaymulwani at gmail.com
Mon Apr 4 13:48:35 UTC 2005


> 
> My question is : can I install the second rpm in %post section of
> install.cfg and what is the command to do it :
> 
Yes, you can.

> rpm -i libstdc++-3.2-1.i386.rpm (if I do that, will the rpm command find
> the package)
> 
No.

> rpm -i /mnt/source/RedHat/RPMS/libstdc++-3.2-1.i386.rpm   (and %post
> --nochroot) (if I do that will the command install the package in the
> right place ?)
> 
No, try the following in your ks.cfg (or install.cfg) :

***** ks.cfg OR install.cfg ***
%post --nochroot
cp /mnt/source/RedHat/RPMS/libstdc++-3.2-1.i386.rpm /mnt/sysimage/tmp

%post
rpm -i /tmp/libstdc++-3.2-1.i386.rpm

**** END ***


Ajay




More information about the Kickstart-list mailing list