LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-28-2008, 03:13 PM   #1
john_h_grubb
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Query multiple packages


Hello all,

I remember querying multiple rpms once using rpm -qa | grep -i <package>, <package> but it is not working for me now. Am I doing something wrong here?

Does anyone know how I can search for a let say... 10 packages in one search string?

Thanks,
 
Old 03-28-2008, 04:04 PM   #2
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
egrep -i "str1|str2"

or

grep -i -e pattern1 -e pattern2

Gentoo

Last edited by prad77; 04-17-2008 at 03:29 AM.
 
Old 03-29-2008, 04:44 AM   #3
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
comma

Code:
rpm -qa | grep -i <package>, <package>
I would omit the comma between the package names: 'rpm' will consider the comma being part of the package name or (when surrounded by spaces) think it is a package name.

Hope this helps,
Regards
SIMP

Fedora User

Last edited by simplicissimus; 04-02-2008 at 05:08 AM.
 
  


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
slackware packages query matters Slackware 2 03-11-2008 11:02 PM
Partitioning for Multiple Linux Distributions Query Tony Bradley Linux - Desktop 1 01-18-2007 07:45 AM
mod_auth_mysql query to multiple database loewen Linux - Newbie 2 11-21-2006 10:04 AM
installing multiple packages btexpress Linux - Software 10 05-24-2004 12:30 AM
Installing multiple cd with the same packages Sylhouette Slackware 2 11-14-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 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