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

RE: Questions on RPM



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

-----Original Message-----
From: Matthew Miller [mailto:mattdm mattdm org] 
Sent: Wednesday, May 30, 2007 5:41 PM
To: patelhn telkom co za; RPM Package Manager
Subject: Re: Questions on RPM

On Wed, May 30, 2007 at 02:04:26PM +0200, Hiren Patel wrote:
> why would you want to do this? this is not something i would do using 
> rpm, i would prefer that the application being installed complained 
> about needing certain environment variables set, and let users add 
> such variables to rc scripts of the shells they run in their home 
> directories. it would be difficult to cater for all shells and may 
> even be an annoyance for some users.

The users who might be annoyed by it probably know enough to deal with
that case. But with your suggestion, what about a user who doesn't know
what an environment variable or a shell is, let alone an rc script?

-- 
Matthew Miller           mattdm mattdm org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




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