Skip to content

Instantly share code, notes, and snippets.

@stardigits
Last active December 30, 2023 23:08
Show Gist options
  • Save stardigits/bf08ad7dc1c62bc258354e7838871be6 to your computer and use it in GitHub Desktop.
Save stardigits/bf08ad7dc1c62bc258354e7838871be6 to your computer and use it in GitHub Desktop.
Tweak to have more disk space on MX Linux 19.2 (Debian 10)

Tweak to have more disk space on MX Linux 19.2 (Debian 10)

Steps:

  1. Remove unwanted / unneeded packages
  2. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment