View previous topic :: View next topic |
Author |
Message |
carney1979 Tux's lil' helper
Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Wed Mar 10, 2004 7:08 pm Post subject: How Do I "Protect" Packages from Being Replaced? |
|
|
I installed a package the other day. The normal version that emerge wanted to install wouldn't compile, so I used:
ACCEPT_KEYWORDS="~x86" emerge packagename
...to install the next revision up.
Now, when I do an 'emerge world', this package wants to downgrade to the version that wouldn't compile.
The version of the package installed now works fine, so how do I keep it from wanting to do that?
David |
|
Back to top |
|
|
BWoso l33t
Joined: 31 Dec 2003 Posts: 920 Location: Cleveland Ohio, USA
|
Posted: Wed Mar 10, 2004 7:20 pm Post subject: |
|
|
you can due emerge -UD world and the U makes it so that it only upgrades the package and doesn't downgrade it _________________ I think that the forums are the greatest thing about Gentoo, thanks to everyone that posts on them!
The best way to cheer yourself up is to try to cheer somebody else up.
-Mark Twain- |
|
Back to top |
|
|
polle Veteran
Joined: 28 Feb 2003 Posts: 1498 Location: Belgium
|
Posted: Wed Mar 10, 2004 7:21 pm Post subject: |
|
|
create a directory /etc/portage
in this directory you place the ebuilds in a file that's called package.mask
you can do that easily like this:
# mkdir -p /etc/portage
# echo "=net-www/mozilla-1-6" >> /etc/portage/package.mask
(for mozilla-1.6 of course, replace by your ebuild)
Last edited by polle on Thu Mar 11, 2004 8:46 am; edited 1 time in total |
|
Back to top |
|
|
RJG Tux's lil' helper
Joined: 07 Feb 2003 Posts: 109 Location: Toronto, ON, Canada
|
Posted: Wed Mar 10, 2004 9:31 pm Post subject: |
|
|
I'd suggest using "<" instead of "=" in package.mask
= means it will block the specified version, < will block any version less than the one specified (which meets your request better as it will allow newer versions to be installed when they become available). |
|
Back to top |
|
|
|