to query a package file, you need to do something like..
[dave at hoth ~/testing]$ rpm -qp joe-2.8-18.i386.rpm
joe-2.8-18
Once it's installed, drop everything after the first '-'
[dave at hoth ~/testing]$ rpm -q joe
joe-2.8-42.62
or ... rpm -qi <foo> for a more verbose output, or
rpm -ql <foo> to list all the files that have been installed by a package
If your not sure of a package name, try doing..
[dave at hoth ~/testing]$ rpm -qa |grep -i joe
joe-2.8-42.62
HTH,
Dave
On Thu, May 10, 2001 at 09:37:57AM +0100, JustinMacCarthy wrote:
> Hi, I have a query RE rpm (RH6.1)
>> if do
> rpm -q foopackge.rpm
>> I get package.rpm is not installed
> if i do
>> rpm -vhi foopackge.rpm
>> I get :
>> foopackage ######################################
>> then :
> rpm -q foopackge.rpm
>> I get package.rpm is not installed.
>> If I then try :
> rpm -vhi foopackge.rpm
>> I get package already installed..
> I tried rpm --rebuilddb but it didn't make a difference.
> Anyone know whats going on?
>>> ~ Justin
>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!