Gentoo Wiki


Merge-arrows.gifIt has been suggested that this article be Merged into one article with TIP Installing Specific Packages    (Discuss)
This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

Many times, for compatibility reasons, you might need a certain version of a package, even though that version might not be the newest. Portage has a feature that allows for you to pick from the versions of each package that exist.

To find the package versions availible, you can go to a site such as Gentoo-Portage (unofficial) or you can use equery from the command line. Equery is included as part of the gentoolkit package. If you don't already have it the gentoolkit package can be installed very easily by simply running

emerge -av gentoolkit

After you've installed the package you can find out the available version of a package by running

equery list -p package_name

After you find out what version of the package you need, it is very simple to get the package.

For example, to get version of foobarsatan ac

Code: In a root terminal
emerge =foobarsatan-
echo ">whatever-category/foobarsatan-" >> /etc/portage/package.mask
# mask all newer versions of foobar
Warning: Sometimes getting old versions of packages requires old dependencies, which may conflict with newer versions of the same package
Retrieved from ""

Last modified: Wed, 26 Dec 2007 15:18:00 +0000 Hits: 3,426