Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A hack for Debian not having unneeded locales. $ cat /etc/dpkg/dpkg.cfg.d/01_less-locales
# remove all locales
path-exclude /usr/lib/locale/??
path-exclude /usr/lib/locale/??/*
path-exclude /usr/lib/locale/??.*
path-exclude /usr/lib/locale/??.*/*
path-exclude /usr/lib/locale/??_*
path-exclude /usr/lib/locale/??_*/*
path-exclude /usr/lib/locale/???_*
path-exclude /usr/lib/locale/???_*/*
path-exclude /usr/share/locale/??
path-exclude /usr/share/locale/??/*
path-exclude /usr/share/locale/???
path-exclude /usr/share/locale/???/*
path-exclude /usr/share/locale/??_*
path-exclude /usr/share/locale/??_*/*
path-exclude /usr/share/locale/??@*
path-exclude /usr/share/locale/??@*/*
# except those we want
path-include /usr/lib/locale/en*
path-include /usr/lib/locale/en*/*
path-include /usr/share/locale/en*
path-include /usr/share/locale/en*/*
path-include /usr/share/locale/locale.alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment