[Fedora-livecd-list] Re: Exclude docs and locales when building livecd

Alexander Todorov atodorov at redhat.com
Tue Aug 4 16:39:54 UTC 2009


Marc Herbert wrote:
> Alexander Todorov a écrit :
>> Hi folks,
>> on my eeepc I have the %_excludedocs rpm macro configured so that no man pages
>> or other documentation is installed. How do I enable this when building a custom
>> live cd? I want to save some space and man pages are not really necessary.
> 
> 
> To strip docs and locales from Fedora 10, I successfully use this:
> 
> %packages --excludedocs --instLangs=en_GB.utf8:en_US.utf8
> 
> 
> ... and this:
> 
> %post
> localedef --list-archive | grep -v -i -E 'en_GB.utf8|en_US.utf8' | 
>        xargs localedef --delete-from-archive
> mv /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl
> /usr/sbin/build-locale-archive
> 

Thanks Marc,
that was what I was looking for. Removing extra locales is also cool.

--
Alexander.




More information about the Fedora-livecd-list mailing list