Installl a specific version of a portage overlay package

emergegentoo

I need to install an older version of x11-libs/bamf package , as you can see below there are different versions available I want to install 0.5.0[2], but it always go to 9999 version using "emerge bamf" i even used "emerge bamf-0.5.2" but no luck, how can I tell the portage which version I need?

USER ~ # eix bamf
* x11-libs/bamf
     Available versions:  
     (0)    ~0.3.6-r200[1] 0.5.0[2] (**)9999[2]
     (3)    (~)0.3.6-r300[1]
       {doc +introspection static-libs}
     Homepage:            https://launchpad.net/bamf
     Description:         BAMF Application Matching Framework

[1] "angelos" /var/lib/layman/angelos
[2] "elementary" /var/lib/layman/elementary

Best Answer

You need to add = at the beginning of the package name, so try

emerge -a =x11-libs/bamf-0.5.0

You can also add a line to /etc/portage/package.mask in order to prevent emerge installing higher version:

>x11-libs/bamf-0.5.0
Related Question