Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Searching for short package names (e.g. at or mc) in aptitude (not at command line but within the interactive tool) is annoying because I don't know a trick to avoid getting hits for plenty of packages that have these letters somewhere in their name when all I want to do is find at or mc themselves. (I have to jump through stuff like ttf-liberation or swat and many more when all I want is at and nothing but at.)

There must be a trick to solve this annoying issue, because I can't be the first person who gets overwhelmed by the large number of results...

share|improve this question

1 Answer 1

up vote 4 down vote accepted
  • To get information about the at package:

    aptitude show at
    
  • To search for a literal at:

    aptitude search ^at$
    

    (^ is a regular expression character that indicated a match from the beginning, $ the end)

share|improve this answer
1  
Awesome. The expression ^at$ in the second command you mention works also within the search field of aptitude's interactive tool. Exactly what I was looking for. Thanks a lot. xkcd.com/208 heh. –  zebonaut Jun 17 '11 at 20:28
    
I've now one Ki reputation :D And regular expressions is one of the most useful inventions imo –  Lekensteyn Jun 17 '11 at 20:33
    
Dank je wel voor de quick and good answer! –  zebonaut Jun 17 '11 at 20:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.