int_ua's Avatar
Posts: 573 | Thanked: 846 times | Joined on Jul 2010 @ Kyiv, Ukraine
#1
Didn't run it myself. Requires bash installed.
Code:
#!/bin/bash
needed="uk|en|ru"
echo -e "\n\nscript WILL DELETE SYSTEM FILES.\nOnly excluding locales: $needed\nPress Ctrl+C to cancel, Enter to proceed:\n"
read
df -h | grep ":rootfs"
sleep 2
cd /usr/share/locale/
for locale in `ls /usr/share/locale/ | grep -vE $needed`; do
     echo "will delete /usr/share/locale/"$locale
     #sudo rm -ir "/usr/share/locale/"$locale
done
df -h | grep ":rootfs"
Just dreaming about why I am sparing space on such a small rootfs for languages I will never use.
 

The Following 2 Users Say Thank You to int_ua For This Useful Post:
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 11:58 AM.