[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Questions on RPM
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Questions on RPM
- Date: Thu, 31 May 2007 08:18:32 +0200
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/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]