CentOS 6 yum/update 오류

minstone·2022년 3월 16일
0
post-thumbnail

1. 환경

CenOS 6 버전


2. 원인

CentOS6 EOL 이후 리포지토리 업데이트 중단으로 인한 yum/update 명령어 오류


3. 해결

  1. OS bit 확인
[root@191 mysql]# getconf LONG_BIT
64
  1. OS bit 확인 후 리포지토리 추가
  • 32bit
echo "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/" > /var/cache/yum/i386/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/i386/" > /var/cache/yum/i386/6/updates/mirrorlist.txt
  • 64bit
echo "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/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

4. 특이사항

-

profile
🌚Stone Kid

0개의 댓글