When viewing a package on the Ubuntu repositories (e.g. launchpad), there is usually only a sentence or two describing the package contents. Is there a place online to see more detail about package contents? Often, downloading a separate docs package is the only way I can get any more info.
Responding to a comment (and other posted answers): I would like something different from listing the file names, since my question is about understanding the technical functionality provided by various packages, for example, what versions of various standards the package implements or where to find the corresponding documentation.
Install the apt-file package:
Update its database:
Now you may use the following to list the contents of a package:
Other commands, like:
will inform you of what package(s) contain the filename file.
If the package is listed in one of the official Ubuntu repositories, you can search for it on https://packages.ubuntu.com/. For example, searching for
aptitude
will get you this page:Scroll to the bottom of the page and click "list of files" for the appropriate architecture (probably
amd64
orall
). This will give you a list of the files contained by the package, e.g.