LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 02-09-2006, 11:55 AM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
Question on Aptitude search pattern


I'm searching for a package called 'libstdc++2.10-glibc2.2'.
Code:
aptitude search libstdc++2.10-glibc2.2
or
Code:
aptitude search 'libstdc++2.10-glibc2.2'
or
Code:
aptitude search "libstdc++2.10-glibc2.2"
does not return me any result.

However, if I use
Code:
aptitude search libstdc.*2.10-glibc2.2
the package is found.

Any reason why the first three commands do not return the expected package?

Thanks !
 
Old 02-11-2006, 05:18 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Code:
vi +/"^Search Patterns" /usr/share/doc/aptitude/README
Quote:
Most textual searches (for package names, descriptions, etc) are performed using
case-insensitive regular expressions. This means that you must backslash-escape
regular expression metacharacters [11] in searches (for instance, to find
``g++'', you should use the pattern ``g\+\+'').
you have to issue:
Code:
aptitude search "libstdc\+\+2.10-glibc2.2"
 
  


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
Question on aptitude search pattern Akhran Linux - Newbie 4 02-10-2006 01:39 PM
What is the wajig equivalent command for 'aptitude search'? Akhran Debian 3 11-04-2005 03:01 AM
pattern search through find command. abhi Linux - Newbie 2 04-11-2005 11:31 AM
Pattern search in a line jitz Linux - General 2 12-06-2003 05:50 AM
multiline pattern search in a file mimi Linux - General 1 09-01-2002 01:22 PM


All times are GMT -5. The time now is 01:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration