증상

CentOS 6.x에서 yum 명령어 사용시 아래와 같은 에러가 발생한다.

Untitled

이유는 CentOS 6.x는 EOL이 되었기 때문이다(https://wiki.centos.org/About/Product)

Untitled

해결방안

해당 서버의 CentOS bit를 확인

Untitled

echo 명령어를 사용하여 yum mirrorlist를 추가 해준다 (os버전에 맞게)

32비트


echo "[<https://vault.centos.org/6.10/os/i386/>](<https://vault.centos.org/6.10/os/i386/>)" > /var/cache/yum/i386/6/base/mirrorlist.txt
echo "[<http://vault.centos.org/6.10/extras/i386/>](<http://vault.centos.org/6.10/extras/i386/>)" > /var/cache/yum/i386/6/extras/mirrorlist.txt
echo "[<http://vault.centos.org/6.10/updates/i386/>](<http://vault.centos.org/6.10/updates/i386/>)" > /var/cache/yum/i386/6/updates/mirrorlist.txt

64비트


echo "[<https://vault.centos.org/6.10/os/x86_64/>](<https://vault.centos.org/6.10/os/x86_64/>)" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo "[<http://vault.centos.org/6.10/extras/x86_64/>](<http://vault.centos.org/6.10/extras/x86_64/>)" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "[<http://vault.centos.org/6.10/updates/x86_64/>](<http://vault.centos.org/6.10/updates/x86_64/>)" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

확인