Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] install-mask -- a tool for all the 'I don't want this file' complainers
Date: Mon, 19 Sep 2011 08:43:16
Message-Id: 20110919104318.1e565cc2@pomiocik.lan
Hello all,

Just a quick note -- I've just committed install-mask-0.0.1 to gx86.
You can use it to quickly set and apply INSTALL_MASK setting so that
you can get rid of the all files you don't want.

The tool is very simple to use. It comes with a few pre-set locations
so you don't need to type in exact paths.

To add a path to INSTALL_MASK use -a:

  install-mask -a systemd
  install-mask -a bash-completion
  install-mask -a /foo/bar

Removal is done through -d, info can be printed using -i (this will
explain preset names as well).

It can also generate rebuild list to apply INSTALL_MASK changes. After
adding new masks, you can do:

  emerge -1v $(install-mask -r)

to rebuild all affected packages. You can also manually 'rm -r'
respective paths -- 'install-mask -r' will not complain about
non-existing files.

Sadly, due to bug #364633 [1] doing the opposite is not possible right
now. When it's fixed, it will require specifying the paths manually (at
least in this version):

  emerge -1v $(install-mask -r bash-completion)


Best regards,
Michał Górny


File name MIME type
signature.asc application/pgp-signature