Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I get the prosaic description of a package using apt? I tried both apt-cache show and apt-cache showpkg but no luck.

Using synaptic it's easy as typing the package name and the description is given by the standard view, but sometimes I'd prefer to just use apt-cache, for example from terminal.

share|improve this question
2  
apt-cache show shows the package description int the Description: field. What else are you looking for? –  enzotib Jun 19 '11 at 20:56
1  
"apt-cache show <package name>" shows the Description if the package is known to the system. In what way is it not working for you? –  Flimzy Jun 19 '11 at 20:56
    
@enzotib I oversighted the output. apt-cache show does exactly the thing I asked for. –  Guandalino Jun 19 '11 at 21:07
add comment

3 Answers 3

If you would just use apt-cache search package-name, all packages with "package-name" in it would be returned. To limit to a package named "package-name", use:

apt-cache search ^package-name$
share|improve this answer
add comment

You can do this with aptitude as in:

aptitude show package-name

See also Is aptitude still considered superior to apt-get?

share|improve this answer
add comment

Assuming you are looking for a specific package, I believe the following is what you are in search of:

apt-cache search some-pkg

If I have misunderstood what you are trying to do, please let me know.

share|improve this answer
3  
Why are you using sudo? –  enzotib Jun 19 '11 at 20:59
    
Out of habit...sorry for any confusion. –  Kory Wnuk Jun 19 '11 at 21:12
add comment

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.