Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm learning about Unix and as part of that, I'd like to have some idea of what all these packages I've been told to install are. I've found that Googling the package name doesn't always reveal anything useful (at least not immediately). Is there a command that would display any documentation or summary of a package, given its name?

EDIT - The distribution is Ubuntu 11.10.

share|improve this question
1  
It depends on the package manager, and so on the Linux distribution you are using (I suppose you talk about Linux, right?) –  enzotib Jan 13 '12 at 8:48
    
@enzotib Yeah. Good point, I edited the question to include that –  Mirov Jan 13 '12 at 8:50

2 Answers 2

up vote 4 down vote accepted

You can get a package description with one of these commands (the APT command for installable packages, the dpkg command for installed packages):

apt-cache show package-name
dpkg -s package-name

You can get the list of installed files with

apt-file list package-name
dpkg -L package-name

In particular grepping this command for /man/ or /bin/ can give you information about available man pages and binaries.

The package documentation should be in

/usr/share/doc/package-name/
share|improve this answer
    
This is perfect. Thanks! –  Mirov Jan 13 '12 at 9:15

With:

dpkg --list | grep 'package name'

you get a (very) brief description (one-liner, in case apt-cache show is to elaborate).

share|improve this answer

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.