trimming down Fedora installed size

Ville Skyttä ville.skytta at
Wed Apr 9 09:37:02 UTC 2014

On Wed, Apr 9, 2014 at 10:33 AM, Marius A <marius1439 at> wrote:
> 1. remove /usr/share/docs

Try this in /etc/rpm/macros.whatever:
    %_excludedocs 1

But that'll exclude _all_ files marked as docs in packages such as man
pages, it's not limited to /usr/share/doc. You might also/instead want
to try this:
    %_netsharedpath %{_datadir}/doc

> 2. remove /usr/share/locale/* (all except en and en_US)

Try this in /etc/rpm/macros.whatever:
    %_install_langs en

It's possible that these settings break some things such as scriptlets
that do not take missing files into account, but at least they're
cleaner attempts than simply deleting installed files/dirs.

More information about the devel mailing list