How can I safely remove unnecessary locales?

asked 2018-06-03 22:33:55 +0300

tux-lee gravatar image

updated 2018-06-03 22:34:51 +0300

/usr/share/locale take 41.1 MB of system disk space. I want to remove all of the except en/uk. Is it safe to simply rm -rf unwanted directories?

edit retag flag offensive close delete

Comments

I would copy the files to the sdcard and then remove the stuff from the system. Just keep them until you're shure you don't need them.

dirksche ( 2018-06-03 23:15:47 +0300 )edit

^^ what he said ^^

Spam Hunter ( 2018-06-03 23:47:19 +0300 )edit

There is a program (bash script) called localepurge which does exactly that in a safe way.

https://cgit.gentoo.org/proj/localepurge.git

Note however that this was designed for Gentoo Linux, and might not work as-is on SailfishOS - OTOH SFOS isn't really different from regular Linux wrt. locale handling so it probably will.

nephros ( 2018-06-04 00:04:20 +0300 )edit
1

Why would I need locales I don't use? Out of principle I've always been against translation packages taking up completely unnecessary disk space. Just ship with en_US, and if an end-user wants to use something else, they can download it. And if they can't do so in en_US, how are they even able to dress themselves in this day and age?

I've been wiping all locales since the N900 days and I never had a problem. Of course, after every update, there they'll be again...

bocephus ( 2018-06-04 06:12:42 +0300 )edit