I know the use of localpurge isn't encourage. Would the use of path-exclude and path-include with dpkg[1] the same danger?
Code:
cat /etc/dpkg/dpkg.cfg.d/excludes
# Drop locales except English
path-exclude=/usr/share/locale/*
path-include=/usr/share/locale/en/*
path-include=/usr/share/locale/en_US/*
path-include=/usr/share/locale/locale.alias
# Drop all translated manual pages
path-exclude=/usr/share/man/*
path-include=/usr/share/man/man[1-9]/*
All the locales and manuals use a third of a gigabyte
Code:
du /usr/share/man /usr/share/locale/ -hs
37M /usr/share/man
341M /usr/share/locale/
While just the English locales is a quarter of a megabyte
Code:
du /usr/share/locale/en /usr/share/locale/en_US/ -sh
252K /usr/share/locale/en
20K /usr/share/locale/en_US/
[1]This was based from Save disk space by excluding useless files with dpkg |