Search:  
Gentoo Wiki

TIP_Installing_Specific_Packages

It has been suggested that TIP Emering a specific version of a software package be merged into this article or section. (Discuss)
This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

Introduction

This article will provide you with the tools needed to:

Installing A Specific Version

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

To find the package versions available, 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.

Code: Installing gentoolkit
# emerge -av gentoolkit

Once gentoolkit has been installed, you can use the equery tool to list available versions of a package.

Code: Listing available versions of a package
# equery list -p <category>/<package>

example:

# equery list -p media-sound/moodbar

Now that you know which versions are available to you, you may pick the version you would like and install it like so.

Code: Emerge a specific version
# emerge =<category>/<package>-<version>

example:

# emerge =sys-kernel/development-sources-2.6.5

Installing Specific (Older) Versions

If you want to keep and install a specific version of a package, you need to use the /etc/portage/package.mask file to mask out versions you don't want installed. For details on /etc/portage/package.mask and it's usage, see man portage.

Retrieved from "http://www.gentoo-wiki.info/TIP_Installing_Specific_Packages"

Last modified: Wed, 26 Dec 2007 15:17:00 +0000 Hits: 20,574