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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-26-2005, 01:10 PM
|
#1
|
|
Member
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54
Rep:
|
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
|
|
|
|
07-26-2005, 01:23 PM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
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
|
|
|
|
07-26-2005, 01:31 PM
|
#3
|
|
Member
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54
Original Poster
Rep:
|
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
|
|
|
|
07-26-2005, 01:31 PM
|
#4
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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
|
|
|
|
07-26-2005, 01:36 PM
|
#5
|
|
Member
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54
Original Poster
Rep:
|
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
|
|
|
|
07-26-2005, 01:46 PM
|
#6
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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?
|
|
|
|
07-26-2005, 02:43 PM
|
#7
|
|
Member
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54
Original Poster
Rep:
|
Thanks it solved the problem
Just tried it an find it working fine and get more then expected results
Sorry just misunderstood <uninstalled>
|
|
|
|
07-26-2005, 03:16 PM
|
#8
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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. 
|
|
|
|
07-27-2005, 07:34 AM
|
#9
|
|
Member
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54
Original Poster
Rep:
|
Quote:
My first language isn't English, so I sometimes get the semantics wrong.
|
Very true trying to keep up...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:02 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|