Eonil Asked: 2011-08-23 00:29:29 +0800 CST2011-08-23 00:29:29 +0800 CST 2011-08-23 00:29:29 +0800 CST How can I uninstall a locale via command-line? 772 I have 5 unused locales on my system. How can I remove them via command line? I have use localepurge but it didn't work. uninstall 1 Answers Voted Best Answer enzotib 2011-08-23T03:30:07+08:002011-08-23T03:30:07+08:00 You can list locales with localedef --list-archive or with locale -a Corresponding file size is given by ls -lh /usr/lib/locale/locale-archive To remove unused locales you can do sudo locale-gen --purge it_IT.UTF-8 en_US.UTF-8 && echo Success! where it_IT.UTF-8 and en_US.UTF-8 are the only two locales I want. The && echo "Success!" at end is useful because locale-gen does not report errors if an unavailable or wrong locale is passed on command line.
You can list locales with
or with
Corresponding file size is given by
To remove unused locales you can do
where
it_IT.UTF-8
anden_US.UTF-8
are the only two locales I want. The&& echo "Success!"
at end is useful becauselocale-gen
does not report errors if an unavailable or wrong locale is passed on command line.