Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up locales #90

Open
jkirk opened this issue Jun 24, 2020 · 0 comments
Open

Clean up locales #90

jkirk opened this issue Jun 24, 2020 · 0 comments

Comments

@jkirk
Copy link
Contributor

jkirk commented Jun 24, 2020

Just noticed that grml-full generates 83 locales which consumes nearly 42MB:

root@grml ~ # grml-version 
grml64-full_testing build3165 Release Codename autobuild-build3165 [2020-06-24]
root@grml ~ # grep -v "^#" /etc/locale.gen | wc -l
83
root@grml ~ # l /usr/lib/locale 
total 40508
drwxr-xr-x 3 root root      236 Jun 24 04:04 C.UTF-8
-rw-r--r-- 1 root root 41479488 Jun 24 04:22 locale-archive

Removing all locales except en_US.UTF-8 drops the disk usage to about 3MB:

root@grml ~ # echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
root@grml ~ # locale-gen 
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
root@grml ~ # l /usr/lib/locale     
total 2892
drwxr-xr-x 3 root root     236 Jun 24 04:04 C.UTF-8
-rw-r--r-- 1 root root 3035216 Jun 24 18:58 locale-archive

I believe GRMLBASE and GRMLFULL (in https://github.com/grml/grml-live/tree/master/etc/grml/fai/config/files/etc/locale.gen) should only provide en_US.UTF-8 as we use localepurge which is configured to remove all locales except en_US.UTF-8 and en.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant