LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rpm listing (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-listing-216627/)

ejbest 08-12-2004 06:59 AM

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.

zulfilee 08-12-2004 07:04 AM

rpm -qa

also

rpm -qf filename

to know which package the file belongs


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

Cheers
Z

irlandes 08-12-2004 10:24 PM

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.

Likewise,

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.


All times are GMT -5. The time now is 02:10 PM.