Skip to content

Instantly share code, notes, and snippets.

@debuggerboy
Created June 26, 2021 16:56
Show Gist options
  • Save debuggerboy/eff6d943352784d61ac038f324681e6a to your computer and use it in GitHub Desktop.
Save debuggerboy/eff6d943352784d61ac038f324681e6a to your computer and use it in GitHub Desktop.
Disable man-db installation

Remove the man-db package

sudo apt remove man-db --purge

Remove mandb directories

sudo rm -rf /usr/share/locale/
sudo rm -rf /usr/share/man/
sudo rm -rf /usr/share/doc/

create a file /etc/dpkg/dpkg.cfg.d/01_nodoc with below content.

# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment