Во время добавления epel на CentOS 6:
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh epel-release-6*.rpm
Получил ошибку:
# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Отредактируем файл:
И в строке:
Заменим https на http.
Вот и все. Наглый копипаст отсюда:
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh epel-release-6*.rpm
Получил ошибку:
# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Отредактируем файл:
# vim /etc/yum.repos.d/epel.repo
И в строке:
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
Заменим https на http.
# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 28 kB 00:00
* base: mirror.corbina.net
* epel: mirror.logol.ru
* extras: mirror.corbina.net
* updates: mirror.corbina.net
epel | 4.4 kB 00:00
epel/primary_db | 6.3 MB 00:03
repo id repo name status
base CentOS-6 - Base 6,367
epel Extra Packages for Enterprise Linux 6 - x86_64 11,124
extras CentOS-6 - Extras 15
updates CentOS-6 - Updates 1,602
vz-base vz-base 3
vz-updates vz-updates 8
repolist: 19,119
Вот и все. Наглый копипаст отсюда: