How to download all available manpages from a distribution

man

I'm using a CentOS server and I'd like to have an offline copy of all available manpages. Not just for the packages I currently have installed, but just all possible manpages.

Right now, I don't see an easy solution for this. Manpages are bundled with the package that installs is, so should I try to install every possible package available, read the manpage and remove the package again?

Would anyone know of alternative ways to download all available manpages for any given distribution?

Ps; the goal is to have an offline copy of available manpages which I can convert to any format I'd like (txt/html) for offline browsing.

Best Answer

This site already has this set up in a great online format.

It seemed to have the few commands I went looking for listed, although I'm sure it doesn't have everything. Note that using the search box up top wasn't the best experience, but selecting the alphabetical characters at the bottom worked great.

alphabetical listing

They are also grouped by sections (ie User Commands, System Calls, Games, etc) which makes for an interesting way of finding new tools.

You could simply use that site as is or do something like:

  • Use a webscraper like .the great HTTrack (GPL and also included in the Kali Linux distribution)
  • Write you own scripts with something like Python / urllib / BeautifulSoup to process and format as you'd like.

I know this post is old, but perhaps someone else will stumble across it as I did.

Enjoy!

Related Question