Re: Questions on RPM

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

 



I have probably seen these in some other forums. Some of them suggest to :
 
1) Remove the /var/lock/rpm file and touch it again.
2) rm /var/lib/rpm/__db*
 
Have you tried both of these already ?
 
Bala
 
On 5/31/07, Rayapudi Sandeep-mgb376 <rsandeep@xxxxxxxxxxxx> 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??

-----Original Message-----
From: Matthew Miller [mailto:mattdm@xxxxxxxxxx]
Sent: Wednesday, May 30, 2007 5:41 PM
To: patelhn@xxxxxxxxxxxx; 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@xxxxxxxxxx          <http://mattdm.org/ >
Boston University Linux      ------>              <http://linux.bu.edu/>



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

_______________________________________________
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