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