/etc/portage/package.mask
From Gentoo Wiki
Jump to:navigation
Jump to:search
/etc/portage/package.mask is a file, or a directory of files, controlled by the system administrator that can be used to prevent certain packages from being installed.
Format
- One DEPEND atom per line; comment lines begin with a
#
(hash). - For DEPEND atom syntax, see version specifier.
Example
# Mask beta versions greater than 1.97 of powertop since they have less features
>=sys-power/powertop-1.97
# Prevent MySQL from being installed by masking the package (use MariaDB)
dev-db/mysql
# Want to go without Java 8; mask JDK and JRE that use Java 8.
virtual/jdk:1.8
virtual/jre:1.8
Now Portage helpfully explains when packages are masked.
root #
emerge virtual/jdk:1.8
Calculating dependencies... done! Dependency resolution took 3.47 s (backtrack: 0/20). !!! All ebuilds that could satisfy "virtual/jdk:1.8" have been masked. !!! One of the following masked packages is required to complete your request: - virtual/jdk-1.8.0-r9::gentoo (masked by: package.mask) /etc/portage/package.mask: # Want to go without Java 8; mask JDK and JRE that use Java 8. For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.
See also
- Knowledge Base:Masking a package
- /etc/portage — the primary configuration directory for Portage, Gentoo's package manager.
- Cleaning /etc/portage/package.* from unused entries