Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-12-2004, 07:59 AM   #1
Registered: Jul 2004
Posts: 34

Rep: Reputation: 15
rpm listing

Sorry to be such a newbie, but can some one please tell me the #rpm command that will list ALL the packages in the system? There have been things I tried with rpm -i and rpm -q; however, nothing seems to make a listing of packages.

Thanks in Advance.
Old 08-12-2004, 08:04 AM   #2
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
rpm -qa


rpm -qf filename

to know which package the file belongs

Get the freely available Maximum Rpm book for a load of informa

Old 08-12-2004, 11:24 PM   #3
Registered: Nov 2003
Posts: 117

Rep: Reputation: 16
more options

rpm -qa | less

shoves them all into less. You can move up and down with page keys, or arrows, and q quits.

This is different, but if you want to know what all the rpms do, take your file browser, in KDe it's Konqueror, into the CD, and type

rpm -qpi * | less

or for permanent file,

rpm -qpi * > /path/filename.txt

and it will produce a permanent text file of rpm info or descriptions that you can peruse with a word processor.


rpm -qpl * > /path/filename.txt

will produce a very large text file of every file in every rpm on that CD.

As I typed, I realized I have failed miserably in my snooping in that I have not tried

rpm -qpil * > /path/filename.txt to try to get them both. I do not think it will work with two options, but I should try it when I get time.


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
iptables is not listing to me pietsebrie Fedora 4 11-18-2004 02:03 AM
Listing All Commands? Rv5 Linux - General 4 09-30-2003 07:42 PM
Listing files before intalling a RPM? deepika Linux - Newbie 3 07-18-2003 06:00 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM
listing of programs squeaks_27 Slackware 4 02-04-2003 02:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 PM.

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