注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Portage/Unmask

From Funtoo
< Portage
Revision as of 20:34, September 23, 2014 by Threesixes (talk | contribs)
Jump to navigation Jump to search

Packages get masked for several reasons.

Portage uses Portage_Profiles, which are used to define basic system settings. Masking of packages also happens on a profile basis.

You can look at /usr/portage/profiles/package.mask/profile for example:

   /usr/portage/profiles/package.mask/00-gentoo
# Dev E. Loper <developer@gentoo.org> (28 Jun 2012)
# Masking  these versions until we can get the
# v4l stuff to work properly again
=media-video/mplayer-0.90_pre5
=media-video/mplayer-0.90_pre5-r1

First you see how added the mask, then an explanation why it was added followed by the masked package including version.

Now if you want to unmask one of those packages you have several possibilities to do so.

  • Let emerge do it for you
root # emerge --ask --autounmask-write =virtual/package-0.1.2
root # dispatch-conf
root # emerge --ask =virtual/package-0.1.2
  • doing it manually for a specific version
root # mkdir -p /etc/portage
root # cd /etc/portage
root # echo "=virtual/package-0.1.2" >> /etc/portage/package.unmask
  • manually for all versions
root # echo "virtual/package" >> /etc/portage/package.unmask