15

On Debian-based systems, can one view the man page of packages that aren't yet installed? I want to check what they are capable first, before installing them.

4 Answers 4

8

You can use debman to view man pages before installing a package. See: http://www.debian-administration.org/articles/454.

1
  • Thank you very much! Yet didn't have time to test it, but if it works like it claims, then it's the perfect solution for me while working on the shell, especially one should get the correct man page (correct version, distribution...). I still like the other answers for reading on another system using my browser. So also thank you very to the other users that replied! Unfortunately I can only select one answer ): Commented Jun 24, 2012 at 12:39
7

Usually the man pages get installed as part of the package.

Perhaps the best idea is starting your search at the web page of your distribution and looking for specific documenation there. I currently use Ubuntu and a quick search yielded the Ubuntu Manpage Repository. I am sure similar pages exist for all the major distributions.

However, anytime I've quickly looked for a man page, I've just googled 'man page some_command' and found several copies of the Unix/Linux man pages on line. I do this frequently when posting here or on SO and want to provide a reference for some command I'm mentioning in a post.

UNIX ON-LINE Man Pages is a repository of man pages.

And here is another index of On-line UNIX manual pages.

Finally,

 sudo apt-get install manpages-dev 

will install the man pages for system and library calls.

Update: As @jasonwryan points out in a helpful comment, the GNU Manuals are available online too.

Update 2: Another useful comment by @user606723 reminds us that there can be different versions of commands/man pages, so while looking at the documentation it would be prudent to note specifics.

4
  • 1
    The GNU Manuals are also online: gnu.org/manual Commented Jun 23, 2012 at 21:56
  • @jasonwryan ...thanks, makes it a more complete answer. Commented Jun 23, 2012 at 21:59
  • 1
    keep in mind that online man pages aren't always the same as the package you might install. There are multiple versions of many programs; multiple forks; sometimes they are completely different... so this should be taken with a grain of salt. Commented Jun 24, 2012 at 4:55
  • @user606723 good point about different versions, OP should be aware of this (I may update my answer to include a note about this). Note that OP was asking about man pages for command they had not installed yet. Still it's good to know about this, and perhaps if they googled they could be more specific by including the distribution they use. Thanks for the comment. Commented Jun 24, 2012 at 12:19
7

A debian developer provides a service named manpages.debian.net where you can access shipped manpages online and can also get a release specific man page.

There is also manpages.ubuntu.com which does the same for Ubuntu.

As this method allows you to access release specific man pages you'll probably get the correct versions for your Distribution.

1
  • I am currently on my raspberry pi and the page you linked unfortunately only distinguishes between debian releases, not architecture. e.g. the dump tool on raspberry pi is a different one only supporting ext2, while documentation on the linked page claims also ext4. Still a useful link in most cases! Commented Jun 24, 2012 at 12:40
1

To the more command-line inclined, there is the option of using a combination of surfraw, elinks and less.

Add the following to ~/.config/surfraw/conf:

SURFRAW_graphical="no" SURFRAW_text_browser="elinks -dump" 

And you're good to go, e.g.

sr google -l man ls | less 

NOTE: The comment by user606723 still holds.

1
  • surfraw configuration no longer seems to be recognized when put in ~/.config/surfraw/conf. At least it doesn't work for me, and is also no longer mentioned in the config documentaiton. though it's still in the man page. Use ~/.surfraw.conf or /etc/surfraw.conf instead Commented Jun 10, 2020 at 3:45

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.