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.

In synaptic if you right-click a package you will see a sub-menu called recommended and another sub-menu called suggested.

How can I see the recommended and suggested packages for a specific package in the terminal?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Use aptitude show. For example:

aptitude show vlc
share|improve this answer
    
Thank you. Mohammad –  MIH1406 Jul 9 '10 at 22:29

You can use aptitude search with ?reverse-depType(pattern):

For example

aptitude search '?reverse-recommends(?narrow(?version(CURRENT),^freemind$))'

will show you the recommends of the currently installed freemind package.

Note that you should use ^packagename$ and not just packagename, because otherwise you will also find the recommends of packages containing packagename in their name.

And you might want to use ?narrow(?version(CURRENT), ...) or something similiar to show only the recommends of the current version, otherwise you will see the recommends of all available versions in the repositories.

For suggests use ?reverse-suggests instead.

Also you can look at the Search Term Reference

share|improve this answer

Try:

apt-cache depends PACKAGE

or, to get also other info on the PACKAGE, use:

apt-cache showpkg PACKAGE
share|improve this answer
    
Without sudo please. –  Peter Eisentraut Jul 29 '10 at 14:26
    
Corrected: sudo was not necessary. I was just used to use sudo at each invocation of apt-* commands. –  mrucci Jul 30 '10 at 5:19

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.