Installing Specific Old Versions of Packages in Yum

Posted on In Linux

We may need to install some old packages such as the kernel in our Linux box. Let’s use installing a older version of Linux kernel in Fedora as the example to introduce how to install old packages from the repository using yum.

By now, suppose we have install kernel-2.6.32.16-143 in the Linux box and we want to install some older kernel in the repository.

First find out all the kernels in the repository by:

# yum list --showduplicates kernel

All the kernel packages will be listed like this:

Installed Packages
kernel.i686                        2.6.32.16-141.fc12               @updates
Available Packages
kernel.i686                        2.6.31.5-127.fc12                fedora
kernel.i686                        2.6.32.16-150.fc12               updates

We find out that 2.6.31.5-127.fc12 kernel package is available. We can install it now:

# yum install kernel-2.6.31.5-127.fc12

Then yum will install the kernel of older version. For other packages, the method is similar with kernel. We just need to replace kernel with the package name above.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *