yum update 커널 업데이트 제외하기
yum update 커널 업데이트 제외하기
커널 업데이트는 신중해야 한다. 커널 업데이트로 인하여 부팅이 안되는 경우가 발생할 수 있다.
네이버 클라우드플랫폼 마이크로 서버에서 yum update 명령으로 인하여, 서버가 부팅이 안되는 경우가 발생하였다.
yum update 할 경우 커널을 제외하고 업데이트를 할 수 있게 하자.
/etc/yum.repos.d/CentOS-Base.repo 파일에 exclude=kernel* 를 추가해준면 업데이트에서 제외시킬 수 있다.
vi /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
exclude=kernel*
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
exclude=kernel*