Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have two web servers, a production web server and a backup web server.

After running a rpm -qa on the two servers, I noticed some package discrepancies.

It seems like, someone ran a yum update at some point in the past on the production server, but did not run it on the backup web server.

I would like to install a few very specific packages on the backup web server.

for example : yum install bind-libs-9.8.2-0.17.rc1.el6_4.5.x86_64

If I run yum install bind-libs-9.8.2-0.17.rc1.el6_4.5.x86_64 it seems to try and find the newest package that matches, and not the specific package I would like.

...
---> Package bind-utils.x86_64 32:9.8.2-0.17.rc1.el6_4.4 will be updated
---> Package bind-utils.x86_64 32:9.8.2-0.17.rc1.el6_4.6 will be an update
...
======================================================================================
 Package           Arch          Version                          Repository      Size
======================================================================================
Updating for dependencies:
 bind-libs         x86_64        32:9.8.2-0.17.rc1.el6_4.6        updates        878 k
...

Is there a way to install only the package I would like and nothing newer?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Another thing you can do which can be a bit more work than previous answer but works as well is to download the package manually and then run

# yum localinstall /path/package.rpm

That should try to install the specific package you downloaded.

share|improve this answer
    
I was also thinking about manual install, but how would I get the rpm in question? I am not sure how to find a specific rpm with just the information i have. –  son_of_fire Oct 15 '13 at 12:52
    
Here you go: mirror.centos.org/centos/6/updates/x86_64/Packages/… –  Tomas Oct 15 '13 at 12:56
    
rpmfind.net is a useful resource for finding RPMs of various versions from various distributions. –  Ruairi Oct 15 '13 at 13:00
    
True. I like to go straight to the distro though but yes, that site is really useful as well :) –  Tomas Oct 15 '13 at 13:29
    
I picked your answer because of your help with the mirror and the details about yum. I just appended .rpm to my corresponding packages and downloaded them all with wget (quick bash script). thanks! –  son_of_fire Oct 15 '13 at 14:48

I believe the following will do what you want, as by default yum won't let you install a release BELOW what's available:

yum install yum-versionlock

and then:

yum --allow-downgrade install bind-libs-9.8.2-0.17.rc1.el6_4.5.x86_64

and to maintain this version in the case of future package updates to your system:

yum versionlock bind-libs

share|improve this answer
    
I will try this one out. thank you. –  son_of_fire Oct 15 '13 at 12:51
    
You're welcome. Do let us know how it goes. –  Ruairi Oct 15 '13 at 12:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.