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

Marc Herbert Marc.Herbert at gmail.com
Tue Aug 4 16:17:29 UTC 2009


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



If the %post script looks like a hack, that's because it is. It is the
least ugly solution I found to fight against the "all locales at any
cost" current policy.

Cheers,

Marc




More information about the Fedora-livecd-list mailing list