Como instalar o perl no RHEL 7?

2

Eu uso RHEL 7.2 e quero instalar perl . Executando yum install perl , gera o seguinte:

# yum install perl
......
Total size: 11 M
Total download size: 8.0 M
Installed size: 36 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for rhel-7-server-rpms
perl-File-Path-2.09-2.el7.noar FAILED                                            ]  0.0 B/s |    0 B  --:--:-- ETA
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/Packages/perl-File-Path-2.09-2.el7.noarch.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=rhel-7-server-rpms clean metadata
Trying other mirror.
perl-5.16.3-286.el7.x86_64.rpm FAILED                                            ] 258 kB/s | 4.7 MB  00:00:13 ETA
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/Packages/perl-5.16.3-286.el7.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=rhel-7-server-rpms clean metadata
Trying other mirror.


Error downloading packages:
  perl-File-Path-2.09-2.el7.noarch: [Errno 256] No more mirrors to try.
  4:perl-5.16.3-286.el7.x86_64: [Errno 256] No more mirrors to try.

Eu tentei yum --enablerepo=rhel-7-server-rpms clean metadata , mas o resultado é o mesmo. Como corrigir esse problema para instalar perl com êxito em RHEL 7 ?

    
por Nan Xiao 09.04.2016 / 12:27

1 resposta

1

Apenas executando yum clean all :

yum clean all

Então este problema está resolvido.

    
por 13.04.2016 / 07:24