Debian – disable all man pages

debianmanpackage-management

Specifically on a raspberry pi (running Raspbian Wheezy), but also in general, can I disable all man pages?

This would mean no stored man pages, no "processing triggers for man-db", and so on and so forth. With the manual pages always available on the internet, I don't really need them installed, and generating and storing them seems unnecessary.

Best Answer

I was having the opposite problem on a Debian 8 image which somebody had put together for a Wandboard. I was trying to find the manual page for some packages which were already installed and noticed that after installing some new ones, the manual pages were missing, even though they were present in the deb file.

I then found this file 01_nodoc in /etc/dpkg/dpkg.conf.d, which is a simple solution to the original question on how to save space by deleting manual pages and locales and copyright files where space is at a premium (eg embedded systems).

# /etc/dpkg/dpkg.conf.d/01_nodoc

# Delete locales
path-exclude=/usr/share/locale/*

# Delete man pages
path-exclude=/usr/share/man/*

# Delete docs
path-exclude=/usr/share/doc/*
path-include=/usr/share/doc/*/copyright