jca*_*fee 6 centos centos6 centos6.2
我们需要更新,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 存储库目录。
您可能至少想要:
[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
Run Code Online (Sandbox Code Playgroud)
请注意,您将不会获得自 CentOS 6.4 发布以来发布的任何安全更新。如果您安装了该yum-plugin-security
模块,您也许可以使用诸如yum --enablerepo=centos --security update-minimal
仅提取安全更新之类的命令,但我还没有检查过这一点,甚至还没有验证 yum 存储库名称。
归档时间: |
|
查看次数: |
2401 次 |
最近记录: |