Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How Do I "Protect" Packages from Being Replaced?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
carney1979
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 145
Location: Maine

PostPosted: Wed Mar 10, 2004 7:08 pm    Post subject: How Do I "Protect" Packages from Being Replaced? Reply with quote

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
View user's profile Send private message
BWoso
l33t
l33t


Joined: 31 Dec 2003
Posts: 920
Location: Cleveland Ohio, USA

PostPosted: Wed Mar 10, 2004 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
polle
Veteran
Veteran


Joined: 28 Feb 2003
Posts: 1498
Location: Belgium

PostPosted: Wed Mar 10, 2004 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
RJG
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2003
Posts: 109
Location: Toronto, ON, Canada

PostPosted: Wed Mar 10, 2004 9:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum