LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Synaptic search: match all terms? (https://www.linuxquestions.org/questions/linux-software-2/synaptic-search-match-all-terms-772379/)

Chriswaterguy 11-30-2009 02:07 AM

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.

evo2 11-30-2009 02:27 AM

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.

Chriswaterguy 12-01-2009 02:18 AM

Quote:

Originally Posted by evo2 (Post 3774092)
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

evo2 12-01-2009 02:23 AM

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.


All times are GMT -5. The time now is 06:41 AM.