RHEL 7에서 펄을 설치하는 방법?

사용 RHEL 7.2하고 설치하고 싶습니다 perl. 실행 yum install perl하면 다음이 출력됩니다.

# 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.

시도 yum --enablerepo=rhel-7-server-rpms clean metadata했지만 결과는 같습니다. 이 문제를 어떻게 해결하여 perl성공적으로 설치할 수 RHEL 7있습니까?



답변

그냥 실행 yum clean all:

yum clean all

그런 다음이 문제가 해결되었습니다.


답변