Small guide that helps to free up space by removing unneccessary locales from Fedora
With some additional information on how to make more space on your system (advices in the end)
Tried on Fedora 34, but should work on other distros as well (RPM-Based?)
df -lh
cd /usr/share/locale/
ls
mkdir /tmp/locales
Now, you need to decide which locales you need to save.
We'll move them to another place, so we don't delete them.
I decided to save all EN* locales as well as RU* (Russian)
Add locales you want to save to the command below (after en* and/or instead of ru*)
sudo mv en* ru* locale.alias /tmp/locales
This command removes all files in current directory.
sudo rm -rf ./*
sudo mv /tmp/locales/* .
df -lh
- Additionally, it should be pretty safe to remove all files from /var/tmp/* as well as /tmp/*:
rm -rf /var/tmp/* /tmp/*
- If you have Docker installed, you can remove unused containers as well:
docker system prune -a
- You can clear additional space by removing older parts of system journal:
sudo journalctl --vacuum-size=100M
- Clean DNF packages with:
sudo dnf clean packages
- You can install additional GUI tool called bleachbit to clean up more space (however, check what you remove with it, it can remove some useful stuff too):
sudo dnf install bleacnbit && sudo bleachbit
- Very important tool to clean up some space is Baobab:
sudo dnf install baobab && sudo baobab
Skipped Step 6. by accident