Re: [ILUG] rpm Question

From: Dave Burke (dave at domain compsoc.com)
Date: Thu 10 May 2001 - 09:47:25 IST


to query a package file, you need to do something like..

[dave at domain 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 domain 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 domain 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 domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at domain linux.ie



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:15 GMT