Re: Installing one more rpm in %post

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

 



> 
> 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


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux