本文共 1319 字,大约阅读时间需要 4 分钟。
yum安装低版本软件包
We may need to install some old packages such as the kernel in our box. Let’s use installing a older version of kernel in as the example to introduce how to install old packages from the repository using yum.
我们可能需要在框中安装一些旧软件包,例如内核。 让我们以在安装旧版本的内核为例,介绍如何使用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.
到目前为止,假设我们已经在Linux框中安装了kernel-2.6.32.16-143,并且我们想在存储库中安装一些较旧的内核。
First find out all the kernels in the repository by:
首先通过以下方法找出存储库中的所有内核:
# yum list --showduplicates kernel
All the kernel packages will be listed like this:
将列出所有内核软件包,如下所示:
Installed Packageskernel.i686 2.6.32.16-141.fc12 @updatesAvailable Packageskernel.i686 2.6.31.5-127.fc12 fedorakernel.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:
我们发现2.6.31.5-127.fc12内核软件包可用。 我们现在可以安装它:
# 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.
然后,yum将安装旧版本的内核。 对于其他软件包,该方法与内核相似。 我们只需要用上面的软件包名称替换内核。
翻译自:
yum安装低版本软件包
转载地址:http://tmlwd.baihongyu.com/