Steps:
- Remove unwanted / unneeded packages
- Remove unwanted locale
#!/bin/bash | |
# URL Reference | |
# https://wiki.debian.org/Locale | |
# https://askubuntu.com/questions/477974/how-to-remove-unnecessary-locales | |
du -sh /usr/share/locale | |
for i in $(ls /usr/share/locale | grep -i -v ^en); do sudo rm -rf /usr/share/locale/$i; done | |
sudo ln -s /etc/locale.alias /usr/share/locale/locale.alias | |
du -sh /usr/share/locale | |
sudo cp /etc/locale.gen /etc/locale.gen.1 | |
sudo cat /etc/locale.gen.1 | grep -i ^en | sudo tee /etc/locale.gen | |
sudo locale-gen --purge en_US |