[Fedora-livecd-list] strip down languages from /usr/share/locale

Alex Magaz alexm at asic.udl.es
Thu Jan 26 17:59:06 UTC 2006


El Jueves, 26 de Enero de 2006 6:06 PM, Jeremy Katz escribió:
> 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

Thanks, I wasn't aware of this method :p
Does it appears somewhere in the kadischi documentation? If not I think it 
would be a good idea to do so (It's difficult put some things in 700MB 
whithout this).

To be sure, if I'm not wrong, to enable %_install_langs macro some lines  
should be uncommented from the file upgrade.py. And the %doc macro is enabled 
adding --excludedocs option to the %package section in the ks file. Is it 
this way?

> > 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
>
> --
> Fedora-livecd-list mailing list
> Fedora-livecd-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-livecd-list




More information about the Fedora-livecd-list mailing list