Re: Questions on RPM

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

 



On Thu, May 31, 2007 at 12:53:24PM +0800, Rayapudi Sandeep-mgb376 wrote:
> To install jdk as part of actual package, I added 'rpm -ivh
> $RPM_INSTALL_PREFIX/jdk-1_5_0_10-linux-i586.rpm' in %post tag. But it
> gives "warning: waiting for transaction lock" error and waits there. I
> bundled jdk-1_5_0_10-linux-i586.rpm along with actual RPM.
> 
> Spec file:
> 
> %post
> 
> if [ -z `rpm -qa | grep jdk-1.5` ]
> then
>         echo 'Installing jdk-1.5.0_10'
>         rpm -ivh $RPM_INSTALL_PREFIX/jdk-1_5_0_10-linux-i586.rpm
> else
>         echo 'Not installing jdk-1.5.0_10 as its already installed'
> fi
> 
> Any suggestions??

Don't do that then.

If you want to ensure other packages a package requires are
installed together with it, that's what rpm dependencies are
for.  The package spec file should just say:

Requires: jdk >= 1.5.0_10

or something similar.

Why you are trying to subvert the system?

Yeti

--
http://gwyddion.net/

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux