Thursday, August 16, 2012

How to install specific Ubuntu packages, with exact version?

SkyHi @ Thursday, August 16, 2012

You can use apt-get to install a specific version of the package a long as it is in an archive that apt knows about. From the apt-get manpage:
A specific version of a package can be selected for installation by following the package name with an equals and the version of the pack- age to select. This will cause that version to be located and selected for install. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distri- bution or the Archive name (stable, frozen, unstable).
For example, you could do:
sudo apt-get install apache2=2.2.20-1ubuntu1
Note that you may need to do some dependency resolution on your own in this case, but if there are any problems apt-get will tell you what is causing them. On my 11.10 system I would need to do the following to get this to work:
sudo apt-get install apache2=2.2.20-1ubuntu1 apache2.2-common=2.2.20-1ubuntu1 apache2.2-bin=2.2.20-1ubuntu1 apache2-mpm-worker=2.2.20-1ubuntu1



REFERENCES
http://askubuntu.com/questions/92019/how-to-install-specific-ubuntu-packages-with-exact-version