百胜更新整个版本,但限于以前的版本

我们需要更新yum update但我们希望保留一个版本。 例如,我们有CentOS 6.2,想要移到6.3。 默认情况下, yum update会安装6.4。

在RedHat上,这可以通过subscription-manager 。 但是,由于subscription-manger器在CentOS上不可用 ,因此无法使用。

进入/etc/yum.repos.d/,仔细查看那里的所有文件。

对于每个指向CentOS仓库的文件,通过设置enabled=0禁用它,然后复制指向vault.centos.org上的CentOS 6.3仓库目录。 任何具有“repodata”子目录的目录都可用作yum存储库目录。

你可能至less想要:

 [centos63] name=CentOS 6.3 - $basearch baseurl=http://vault.centos.org/6.3/os/$basearch enabled=1 cost=1000 [centos63-updates] name=CentOS 6.3 Updates - $basearch baseurl=http://vault.centos.org/6.3/updates/$basearch enabled=1 cost=1000 

请注意,自从CentOS 6.4发布以来,您将无法获得任何安全更新。 如果你安装了yum-plugin-security模块,你可以使用像yum --enablerepo=centos --security update-minimal这样的命令来yum --enablerepo=centos --security update-minimal安全更新,但是我没有检查过,甚至没有validationyum存储库名称。

正在使用太空行走服务器做更新你的操作系统,或者你从Cent OS(互联网)拉。

如果您有本地太空行走服务器使用以下命令,您可以创build通道Cent OS 6.3。

 #spacewalk-create-channel --user=admin --server=localhost --version=6 --update=3 --release=Server --arch=x86_64 --destChannel=6-CentOS6 

一旦你完成上述步骤,那么你可以添加你想要保持6.3的所有Cent OS服务器。

太空行走

太空行走-2