CentOS 6 - 無更新

CentOS 6 - 無更新

我已經設定了 CentOS 6.3 VM 一段時間,但當我執行 yum check-update 或 yum list-security 時,我沒有看到任何更新。必須有一些東西(尤其是 Apache/MySQL!)。

如果我運行yum list --security--bugfix,我確實會看到很多軟體包,但我知道其中許多軟體包不適用,因為它們尚未安裝。跑步時yum check-update --security,我再次得到

無需包裹即可保證安全; 0 個可用包

現在,或許沒有了任何,但這似乎不太合理。

答案1

仔細檢查您是否能夠存取託管 yum 儲存庫的伺服器。您可以使用yum-config-manager來取得 HTTP 位址,如下所示:

$ yum-config-manager |grep "mirrorlist.*http"
mirrorlist = http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
mirrorlist = https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64
mirrorlist = http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras
mirrorlist = http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates

然後 ping 伺服器以確保您的伺服器可以存取它們:

$ ping -c 4 mirrorlist.centos.org
PING mirrorlist.centos.org (72.232.223.58) 56(84) bytes of data.
64 bytes from 58.223.232.72.static.reverse.ltdomains.com (72.232.223.58): icmp_seq=1 ttl=52 time=48.5 ms
64 bytes from 58.223.232.72.static.reverse.ltdomains.com (72.232.223.58): icmp_seq=2 ttl=52 time=42.8 ms
64 bytes from 58.223.232.72.static.reverse.ltdomains.com (72.232.223.58): icmp_seq=3 ttl=52 time=47.7 ms
64 bytes from 58.223.232.72.static.reverse.ltdomains.com (72.232.223.58): icmp_seq=4 ttl=52 time=46.9 ms

--- mirrorlist.centos.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3053ms
rtt min/avg/max/mdev = 42.855/46.531/48.596/2.202 ms

相關內容