trimming down Fedora installed size
james at fedoraproject.org
Thu Apr 10 13:49:48 UTC 2014
On Wed, 2014-04-09 at 16:41 -0400, Matthew Miller wrote:
> On Wed, Apr 09, 2014 at 03:57:27PM -0400, James Antill wrote:
> > For recent yum it's significantly better to do:
> > yum fs filter nodocs
> > Dito. to get rid of extra languages by:
> > yum fs filter langs en
> > ...then you can yum fs refilter / yum fs refilter-cleanup.
> So -- if the host is originally installed with anaconda's kickstart options
> for nodocs and language selection, will `yum fs refilter` still work?
The way the nodocs stuff is done in anaconda is by changing the rpm
macros directly where yum uses the slightly saner API there of setting
the rpm.RPMTRANS_FLAG_NODOCS transaction flag. And yum looks just for
that transaction flag when it sets/gets the yumdb tsflag_nodocs.
On the other hand, the only way to change the installed languages is
via. the rpm macro ... so while anaconda doesn't use the yum
configuration to do it, I believe yum will still see that the rpm macro
has changes and get/set yumdb ts_install_langs correctly.
More information about the devel