Quick hint for running Gentoo stable (Without constantly having to upgrade...)

I realise this is probably covered somewhere in the documentation, but it's something I only figured out a few weeks ago, so here ya go:

When you want to merge an unstable package onto your Gentoo stable system, you often have to set unstable keywords on that package and half a dozen dependencies. Now, I've always done this by adding lines like this to /etc/portage/package.keywords:
dev-python/matplotlib ~amd64

with one line for the package and each dependency package. Now, that makes sense if what you really are trying to say is "I always want the latest possible release of this package", but what I often want to say is "Do what you need to do to get this unstable package installed, and as it stabilises at this or higher version, migrate to the stable versions". Turns out this is pretty easy to do, just make the line in package.keywords look like this:
=dev-python/matplotlib-0.82 ~amd64

so that only the given version will allow for unstable status. The system doesn't prompt you to upgrade every time a new unstable release shows up, so you don't spend forever and a day on upgrades to something that's not crucial to your operations.

There may be something I'm missing, but it seems to work well for me.


  1. grayrest

    grayrest on 12/13/2005 9:03 a.m. #

    And since you're a pythonista, you may be interested in [1]. I strongly prefer to have everything installed on my gentoo box managed by portage, meaning that I make my own if an ebuild isn't already in portage. This extension makes it really easy to create ebuilds for newer python packages.<br />
    <br />
    [1] http://eggs.gentooexperimental.org/

Comments are closed.


Pingbacks are closed.