LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-26-2005, 01:10 PM   #1
dhirsolo
Member
 
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54

Rep: Reputation: 15
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.

Pl help
 
Old 07-26-2005, 01:23 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
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
 
Old 07-26-2005, 01:31 PM   #3
dhirsolo
Member
 
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54

Original Poster
Rep: Reputation: 15
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
 
Old 07-26-2005, 01:31 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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
 
Old 07-26-2005, 01:36 PM   #5
dhirsolo
Member
 
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54

Original Poster
Rep: Reputation: 15
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
 
Old 07-26-2005, 01:46 PM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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?
 
Old 07-26-2005, 02:43 PM   #7
dhirsolo
Member
 
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks it solved the problem

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

Sorry just misunderstood <uninstalled>
 
Old 07-26-2005, 03:16 PM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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.
 
Old 07-27-2005, 07:34 AM   #9
dhirsolo
Member
 
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
My first language isn't English, so I sometimes get the semantics wrong.
Very true trying to keep up...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
querying modules node047 General 0 04-06-2005 12:14 PM
querying the modules node047 Linux - General 1 04-05-2005 01:35 AM
aliases.db not querying CC field jules_fraser Linux - Networking 0 01-19-2004 02:48 PM
Querying motherboard liguorir Linux - Software 1 09-02-2003 10:22 AM
querying RPM packages for dependencies joeslazenger Linux - Newbie 2 08-05-2002 08:04 AM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration