Knowledge Base:Masking a package

Synopsis
Sometimes it is good for Portage to not take into account a certain package or a specific version of a package. Reasons for such actions could be because the new version fails to work or drops a functionality, etc.

Environment
Any Gentoo installation.

Analysis
Portage knows how to understand package masks. Users can mask any package they do not desire to have on their system. The scope of the mask is left up to the user; a mask can be applied to all versions of a package or to specific package versions.

Resolution
To mask versions newer than :

Using file:

Using directory:

Create the directory, if it does not exist yet:

Create a file for the mask operation Portage will perform: