You cannot see this page without javascript.

CentOS7 커널 업데이트

CentOS 조회 수 703 추천 수 0 2018.04.23 19:22:29

커널 version 확인

# uname -sr

 

업데이트 진행

ELRepo repository 를 CentOS7 에 추가

# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

설치가능 커널목록 을 확인

# yum --disablerepo="*" --enablerepo="elrepo-kernel" list available

커널을 설치

# yum --enablerepo=elrepo-kernel install kernel-ml
# yum --enablerepo=elrepo-kernel install kernel-ml-devel
# yum --enablerepo=elrepo-kernel -y swap kernel-headers -- kernel-ml-headers

 

 

만약 위와 같이 설치하는 중에 glibc 등등의 이유로 설치가 완료되지 않는다면 다음과 같이 해보자.

# vi /etc/yum.repos.d/elrepo.repo

[elrepo]name=ELRepo.org Community Enterprise Linux Repository - el7baseurl=http://elrepo.org/linux/elrepo/el7/$basearch/ http://mirrors.coreix.net/elrepo/elrepo/el7/$basearch/ http://mirror.rackspace.com/elrepo/elrepo/el7/$basearch/ http://repos.lax-noc.com/elrepo/elrepo/el7/$basearch/ http://mirror.ventraip.net.au/elrepo/elrepo/el7/$basearch/mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo.el7enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.orgprotect=0
[elrepo-testing]name=ELRepo.org Community Enterprise Linux Testing Repository - el7baseurl=http://elrepo.org/linux/testing/el7/$basearch/ http://mirrors.coreix.net/elrepo/testing/el7/$basearch/ http://mirror.rackspace.com/elrepo/testing/el7/$basearch/ http://repos.lax-noc.com/elrepo/testing/el7/$basearch/ http://mirror.ventraip.net.au/elrepo/testing/el7/$basearch/mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo-testing.el7enabled=0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.orgprotect=0
[elrepo-kernel]name=ELRepo.org Community Enterprise Linux Kernel Repository - el7baseurl=http://elrepo.org/linux/kernel/el7/$basearch/ http://mirrors.coreix.net/elrepo/kernel/el7/$basearch/ http://mirror.rackspace.com/elrepo/kernel/el7/$basearch/ http://repos.lax-noc.com/elrepo/kernel/el7/$basearch/ http://mirror.ventraip.net.au/elrepo/kernel/el7/$basearch/mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7enabled=0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.orgprotect=0
[elrepo-extras]name=ELRepo.org Community Enterprise Linux Extras Repository - el7baseurl=http://elrepo.org/linux/extras/el7/$basearch/ http://mirrors.coreix.net/elrepo/extras/el7/$basearch/ http://mirror.rackspace.com/elrepo/extras/el7/$basearch/ http://repos.lax-noc.com/elrepo/extras/el7/$basearch/ http://mirror.ventraip.net.au/elrepo/extras/el7/$basearch/mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo-extras.el7enabled=0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.orgprotect=0

# yum updqte
# yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
# yum --enablerepo=elrepo-kernel -y swap kernel-headers -- kernel-ml-headers

 

 

아마도 설치가 완료가 될 것이다.

 

부팅 순서 변경

부팅 순서 확인

# grub2-editenv list

부팅커널 확인

# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2
CentOS Linux (4.13.2-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (3.10.0-693.2.2.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-514.26.2.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-99469085913545568c1e75ad9d37bd09) 7 (Core)# grep ^menuentry /boot/efi/EFI/centos/grub.cfg | cut -d "'" -f2

부팅커널 변경

# grub2-set-default "CentOS Linux (4.13.2-1.el7.elrepo.x86_64) 7 (Core)"

부팅 변경 확인

# grub2-editenv list
saved_entry=CentOS Linux (4.13.2-1.el7.elrepo.x86_64) 7 (Core)

재부팅 및 확인

# reboot
[root@ML350 ~]# uname -sr
Linux 4.13.2-1.el7.elrepo.x86_64
엮인글 :
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
369 APM mariadb download origin address LynX 2019-06-19 2009
368 APM What one can and should optimize LynX 2019-06-03 1423
367 CentOS mariadb install LynX 2019-05-31 1185
366 CentOS init mode change LynX 2019-05-30 1294
365 APM ext zip install LynX 2019-02-19 1618
364 APM ext ImageMagick install LynX 2019-02-19 530
363 3D Printer Pronterface(PrintRun) install file LynX 2018-09-13 754
362 CentOS Grub UUID change LynX 2018-08-08 880
361 Linux letsencrypt wildcard LynX 2018-07-26 798
360 Printer cura usb connection LynX 2018-07-06 668
359 CentOS cli 무선랜 LynX 2018-06-07 449
358 APM 윈도우에 APM 페키지 설치 file LynX 2018-05-04 625
357 APM MySQLTuner 설치 LynX 2018-04-27 546
» CentOS CentOS7 커널 업데이트 LynX 2018-04-23 703
355 HTML Tag CSS 여러가지 모양 만들기 LynX 2018-02-08 773
354 Linux wkhtmltopdf wkhtmltoimage install LynX 2018-01-31 604
353 APM LZ4_LIBS Not Found (CentOS7, MariaDB 10.1.29) LynX 2018-01-03 503
352 APM mysql ./configure LynX 2017-12-15 806
351 APM PHP-7.2.0 LynX 2017-12-12 3157
350 Linux libiconv LynX 2017-12-08 558

XE Login