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?

link|improve this question
feedback

3 Answers

Use aptitude show. For example:

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

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

link|improve this answer
feedback

Try:

apt-cache depends PACKAGE

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

apt-cache showpkg PACKAGE
link|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
feedback

Your Answer

 
or
required, but never shown

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