LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2004, 05:04 PM   #1
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
RPM list?


I know I can list all the RPMs installed on our system by entering rpm -qa, but what if I wanted to look for a specific RPM? I installed java and don't know what it installed as, so I'm having trouble removing it. If I could do something like rpm <blah> j* | less so that it'd search for all packages beginning with j, that would be excellent.
 
Old 10-06-2004, 05:20 PM   #2
netopia
LQ Newbie
 
Registered: Sep 2004
Location: Boston, MA
Distribution: fedora core 2
Posts: 28

Rep: Reputation: 15
People typically use the grep utility to do this. Grep (with no options) reads from standard input and lists all the lines which contain the pattern you pass it as an argument. So
rpm -qa | grep java
will list all the lines from the output of rpm -qa that contain 'java'. It returned this on my system:

[user@server user]$ rpm -qa | grep java
gcc-java-3.3.3-7
redhat-java-rpm-scripts-1.0.3-2
javamail-20031006-4
gcc34-java-3.4.0-1

Good luck.
 
Old 10-06-2004, 05:24 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
rpm -ql `rpm -qa` | grep -i java


Cheers,
Tink
 
Old 10-06-2004, 05:24 PM   #4
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Nice! It worked beautifully, thanks a lot!
 
  


Reply



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
view a rpm list. bruse Linux - Newbie 2 05-01-2005 03:45 PM
rpm list how to bruse Linux - Newbie 2 05-01-2005 02:48 PM
rpm list. bruse Mandriva 1 04-29-2005 01:33 AM
RPM in Slackware package list mpelts Slackware 1 09-01-2003 02:57 PM
rpm List in RH 9 fettouhi Linux - Newbie 1 06-08-2003 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration