Centos repo从6.4变为6

时间:2014-08-14 12:51:07

标签: centos yum

Centos 6.4没有收到任何更新 我有一个centos VM,我必须安装perl

镜子不再存在 如何更改yum Repo中的Centos版本链接 从6.4到6

 http://mirrors.vonline.vn/centos/6.4/updates/x86_64/Packages/dbus-glib-0.86-6.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"


Is this ok [y/N]: y
Downloading Packages:
http://centos-hn.viettelidc.com.vn/6.4/updates/x86_64/Packages/perl-5.10.1-131.el6_4.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.

1 个答案:

答案 0 :(得分:0)

您可以像这样直接安装Perl;
对于64位处理器:

rpm -Uhv http://mirror.centos.org/centos/6/os/x86_64/Packages/perl-5.10.1-136.el6.x86_64.rpm

对于32位处理器:

rpm -Uhv http://mirror.centos.org/centos/6/os/i386/Packages/perl-5.10.1-136.el6.i686.rpm

之后,您可以查看存储库中的URL;
/etc/yum.repos.d/CentOS-Base.repo