LinuxQuestions.org
Review your favorite Linux distribution.
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 11-30-2009, 03:07 AM   #1
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Rep: Reputation: 16
Synaptic search: match all terms?


Synaptic only does a "match any word" type of search,

E.g. I try looking up "post-it" or post-it but so in effect I can only search for "postit" (one word)

I'm using Ubuntu (actually Crunchbang) 8.10, but expect to be switching to Mandriva or Fedora in the next month or two.
 
Old 11-30-2009, 03:27 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
I think that using 'apt-cache search' from the command line may be much more powerful* since you can use regular expressions and do things like pipe the output to grep.

Evo2.

* Disclaimer: perhaps it is also possible to use regular expressions in synaptic, but since I don't use it couldn't say.
 
Old 12-01-2009, 03:18 AM   #3
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by evo2 View Post
I think that using 'apt-cache search' from the command line may be much more powerful* since you can use regular expressions and do things like pipe the output to grep.
Thanks. I tried
Code:
sudo apt-cache search "post it"
but got no hits. Adding regex didn't help. How can I search for a phrase?

Thanks
 
Old 12-01-2009, 03:23 AM   #4
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
As far as I know your syntax should work. Exactly which package are you expecting "post it" to match with in the search?

Evo2.

Ps. No need to use sudo with apt-cache.

Last edited by evo2; 12-01-2009 at 03:24 AM. Reason: PS
 
  


Reply

Tags
synaptic, ubuntu


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
search files in the current directory/subdirectory for lines that match particular rajdey1 Linux - Newbie 2 11-24-2008 03:32 PM
LXer: Search terms LXer Syndicated Linux News 0 05-22-2006 08:33 PM
Synaptic default search demerson3 Linux - Software 2 11-10-2005 01:32 AM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 06:21 PM
search terms minimum length okok LQ Suggestions & Feedback 3 02-04-2002 01:22 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration