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

RE: can an RPM package query the RPM database?



I fixed this by echoing (in %post) $RPM_INSTALL_PREFIX from the initial
package into a temp file /tmp/.<whatever>
The second package can then get the prefix_path of the initial via this temp
file.

Was there another way?
Cheers,
Scotty

-----Original Message-----
From: Cameron Scott ICM N MC MI SI 6 
Sent: Thursday, July 19, 2001 12:15 PM
To: 'rpm-list@redhat.com'
Subject: can an RPM package query the RPM database?


Hi again :)
Does anyone know if an RPM package can query the RPM database while
installing? 
As a post install step I am trying to find the prefix path another package
was installed under by running:
rpm -q <package_name> --queryformat '%{INSTALLPREFIX}'

but I get the following message: 
cannot get shared lock on database 
rpmQuery: rpmdbOpen() failed 

Does anyone know a way around this? 


I searched the archive on RedHat but found only this entry - with no
replies:
http://www.redhat.com/mailing-lists/rpm-list/msg00771.html


Cheers,
Scotty



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





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