프로그램/Linux

centos 6.9 에서 yum install이 안되는 문제

milktea.kang 2019. 3. 26. 17:58

centos 6.9 yum repo deprecated

http://centos.mirror.cdnetworks.com/6.9/readme

This directory (and version of CentOS) is deprecated.  For normal users,

you should use /6/ and not /6.9/ in your path


6.9는 지원하지 않으니 6으로 사용하라고 되어있음



해결방법

root 로 로그인 후

vi /etc/yum.repo.d/Centos-Base.repo

모든 mirrorlist url의 $releasever을 6으로 변경

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra

mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os&infra=$infra


yum update -y

reboot


재부팅 이후 $releasever로 바꿔준다

'프로그램 > Linux' 카테고리의 다른 글

ubuntu 19 듀얼 모니터 workspace 이동  (0) 2019.05.31
linux user no password login su  (0) 2019.05.28
oracle java 유료화로 인한 openjdk 변경 작업  (0) 2019.03.26
centos tuning  (0) 2019.03.26
ubuntu text mode로 변경  (1) 2016.05.06