Installing one more rpm in %post

Daniel Segall dan at half-asleep.com
Mon Apr 4 12:03:53 UTC 2005


It really depends on your environment. The way I do it, is just have any
additional packages sitting on an NFS share which gets mounted at %post,
and whatever is needed for that install (based on variables in my post
install script) gets copied to /root, then installed. This way you are
still in chroot.

-Dan

> I have a problem with my distribution. I need to install to different
> rpm versions with the same name : libstdc++-2.96-113.i386.rpm and
> libstdc++-3.2-1.i386.rpm. The two versions do not conflicts and can be
> manually installed together with rpm -i.
>
> My installer is a RH 7.3 installer and libstdc++ is set in comps file.
>
> Only libstdc++-2.96-113.i386.rpm get installed...
>
> My question is : can I install the second rpm in %post section of
> install.cfg and what is the command to do it :
>
> rpm -i libstdc++-3.2-1.i386.rpm (if I do that, will the rpm command find
> the package)
>
> 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 ?)
>
> Or is there a better way to get the two packages installed ?
>
> Thanks for helping me.
>
> Jean-Paul Leclère
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 01/04/2005
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>
>





More information about the Kickstart-list mailing list