LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Querying RPM (https://www.linuxquestions.org/questions/linux-newbie-8/querying-rpm-346992/)

dhirsolo 07-26-2005 01:10 PM

Querying RPM
 
What is the method to query a rpm file to find out for what purpose it is made of. And which application it will install ?

By installing through package manager it only indicates that -> "one package qued for installation" and giving some options. But it makes nothing clear. :confused:

Pl help

JimBass 07-26-2005 01:23 PM

I'm not sure if any CLI tool exists to tell you what specifically it is that the rpm will install. Usually the name is a good help, like foobar.rpm will install foobar, but you would usually have to look online to see what it is that foobar does. For all the libs, manpages, etc, you may have to peek at the source code. I would try just dumping the name of the rpm into google.com/linux

Peace,
JimBass

dhirsolo 07-26-2005 01:31 PM

Thanks for reply

I downloaded some rpms which starts with linux-kernel-2.x.xxx etc. some of them was single modules and other one are patch(s) for my soundcard. All are sized some kb. And somehow i messed them. And now i want to do some cleanup. But still confused which do delete and which to keep.

regards

reddazz 07-26-2005 01:31 PM

You use the "rpm -q" command e.g. to find out the purpose of an installed package, you would do
Code:

$rpm -qi packagename
For an uninsalled package you would do,
Code:

$rpm -qip packagename.rpm

dhirsolo 07-26-2005 01:36 PM

Quote:

Originally posted by reddazz
You use the "rpm -q" command e.g. to find out the purpose of an installed package, you would do
Code:

$rpm -qi packagename
For an uninsalled package you would do,
Code:

$rpm -qip packagename.rpm

Thanks for help

It will works only with installed packages. Is there is any method to query rpm which are not installed.


Regards

reddazz 07-26-2005 01:46 PM

Quote:

Originally posted by dhirsolo
Thanks for help

It will works only with installed packages. Is there is any method to query rpm which are not installed.


Regards

Did you read my post carefully?

dhirsolo 07-26-2005 02:43 PM

Thanks it solved the problem

Just tried it an find it working fine and get more then expected results

Sorry just misunderstood <uninstalled>

reddazz 07-26-2005 03:16 PM

Quote:

Originally posted by dhirsolo
Thanks it solved the problem

Just tried it an find it working fine and get more then expected results

Sorry just misunderstood <uninstalled>

My first language isn't English, so I sometimes get the semantics wrong. :)

dhirsolo 07-27-2005 07:34 AM

Quote:

My first language isn't English, so I sometimes get the semantics wrong. :)
Very true trying to keep up...


All times are GMT -5. The time now is 12:07 PM.