[Fedora-livecd-list] strip down languages from /usr/share/locale
Jeremy Katz
katzj at redhat.com
Thu Jan 26 17:06:30 UTC 2006
On Thu, 2006-01-26 at 11:26 +0100, Alex Magaz wrote:
> I've been adapting a script from the debian package localepurge to work as
> post install script. This script purges all languages that doesn't appear in
> the locale.nopurge file. It also gives the option to purge man pages
> uncommenting MANDELETE option.
Per my mail last week, I think it's far smarter to look at enabling a
(fairly hidden) way of having anaconda set the %__install_langs macro
for rpm so that only the locales you want get installed. There's also
already a (similarly hidden) option to avoid installing files that are
marked as %doc
> I have some questions about disk saving. What about the files
> under /usr/lib/locale? Are they necessary? In my system it takes up around
> 100M of disk space. And /usr/share/doc? Apart from HTML, can the other
> directories be safely deleted?
These are various things required by glibc to support a locale. I'm
pretty sure they're tagged with the right lang tag, though, so again, if
the route of setting %__install_langs is taken, then the space usage
should be reduced to what is actually required
Jeremy
More information about the Fedora-livecd-list
mailing list