View previous topic :: View next topic |
Author |
Message |
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Sun Apr 06, 2008 3:37 am Post subject: Install Masked Package |
|
|
How do I install a masked package? |
|
Back to top |
|
|
SlashRhumSlashNeisson Apprentice
Joined: 30 Dec 2006 Posts: 201 Location: Lille
|
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Sun Apr 06, 2008 5:29 am Post subject: |
|
|
If it is masked by keyword, meaning like you are running x86 and it is keyworded as ~x86 for unstable/not-fully-tested) then you would need to do something like this:
Code: | echo sys-apps/portage ~x86 >> /etc/portage/package.use |
Replace sys-apps/portage with whatever you actually want and x86 with your ARCH
If it is masked in package.mask then you need to do
Code: | echo sys-apps/portage >> /etc/portage/package.unmask |
And again replace with whatever package you need
edit: Beaten to the punch |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21586
|
Posted: Sun Apr 06, 2008 4:14 pm Post subject: |
|
|
The original poster did not specify which type of mask, and seems sufficiently ill-informed about masking that I am going to assume he or she may not know the consequences of overriding a mask. If the reader does know the consequences and just did not know the method, then ignore the rest of this post.
Packages are masked on purpose, usually because they are not deemed suitable for consumption by unwarned users. Unmasking the package is notification to Portage that you have been warned of the consequences of using the package, and want to proceed anyway. If a package is masked by keywords, that is an indication it may not or will not build and run correctly on your system. For instance, packages which are not 64-bit clean are marked as broken on 64-bit architectures. A package which is "unstable" may work perfectly well or it may not. If the package is masked by package.mask, that is a deliberate act by a developer to try to prevent more serious problems. Common reasons for placing a package in package.mask include, but are not limited to:
- Known serious security vulnerabilities, such as remote execution of arbitrary code.
- Known major incompatibilities with other common packages, such as an API change that breaks the compilation of other packages (e.g. neon breaks API quite often).
- Pending removal from the Portage tree, so users should not start using it now.
- Experimental package that requires extensive testing by informed users before it is unleashed on the general userbase, such as baselayout-2.
Finally, the big warning:
Masked packages often receive less or even no support. If you unmask a package without knowing what you are doing, you may be left to clean up the mess yourself if anything breaks. Forum regulars can try to help resolve problems, but you could create a sufficiently large mess that there is no quick way out. |
|
Back to top |
|
|
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Sun Apr 06, 2008 5:57 pm Post subject: |
|
|
@SlashRhumSlashNeisson - Yeah I am serious but I'm not going to install a masked package because of what Hu said.
@slycordinator -Thanks for the info
@Hu - Ok I won't use a masked package because I don't want to screw up my system
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21586
|
Posted: Sun Apr 06, 2008 9:09 pm Post subject: |
|
|
EvilEye wrote: | @Hu - Ok I won't use a masked package because I don't want to screw up my system
|
To clarify my prior post: packages which are missing a keyword or are marked as "unstable" typically will not break the system on their own. However, you could still damage the system if you upgraded a key component to a testing version that happened to be broken in some way. From what I have read, packages which are masked by package.mask can, in some cases, make a sufficient mess that the repair process would be nontrivial. For example, the hardened profiles mask =sys-libs/glibc-2.4* with a comment that indicates that installing it would break running systems.
What package were you considering installing? What was the exact error text produced by Portage when you attempted to install it without first unmasking it? Someone here might have enough experience with it to advise you whether the package is hazardous to the health of your system. |
|
Back to top |
|
|
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Mon Apr 07, 2008 12:29 am Post subject: |
|
|
Hu wrote: | What package were you considering installing? |
Hu wrote: | What was the exact error text produced by Portage when you attempted to install it without first unmasking it? |
Code: | penguin ~ # emerge Mail-DKIM
Calculating dependencies -
!!! All ebuilds that could satisfy "dev-perl/Mail-DKIM" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-perl/Mail-DKIM-0.30.1 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.26 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.24 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.23 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.22 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.19 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.18 (masked by: ~x86 keyword)
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
|
|
|
Back to top |
|
|
square_ Tux's lil' helper
Joined: 20 Dec 2007 Posts: 114
|
Posted: Mon Apr 07, 2008 2:27 am Post subject: |
|
|
it makes a difference whether a package is masked by keyword (unmask in /etc/portage/package.keyword) or hard masked (unmask in /etc/portage/package.unmask).
masked by keyword could be fine, most likely just not thoroughly tested.
i use a full ~x86 system without much trouble, every now and then i have to mask a single package-version that doesnt work on my system.
most new versions of packages start keyword-masked. |
|
Back to top |
|
|
achlice n00b
Joined: 20 Feb 2008 Posts: 6
|
Posted: Mon Apr 07, 2008 4:13 am Post subject: |
|
|
nothing to do ~~~~~~~~~ just see it ~~ _________________ just do it ~~ |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21586
|
Posted: Tue Apr 08, 2008 12:32 am Post subject: |
|
|
I agree with square_. That package is neither hard masked nor critical to proper system operation. It is quite likely safe to install it. |
|
Back to top |
|
|
RodEz n00b
Joined: 17 Mar 2008 Posts: 7
|
Posted: Wed Apr 09, 2008 7:06 am Post subject: |
|
|
there is autounmask,a good utility that modify your .keywords file automatically. |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Wed Apr 09, 2008 6:23 pm Post subject: |
|
|
Moved from Installing Gentoo to Duplicate Threads.
Moved in favour of https://forums.gentoo.org/viewtopic-t-33534.html _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
|