You cannot see this page without javascript.

CentOS7 커널 업데이트

CentOS 조회 수 107 추천 수 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

엮인글 :
https://tocup.net/xe/tech/64923/5a7/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수
363 3D Printer Pronterface(PrintRun) install file LynX 2018-09-13 44
362 CentOS Grub UUID change LynX 2018-08-08 47
361 Linux letsencrypt wildcard LynX 2018-07-26 51
360 Printer cura usb connection LynX 2018-07-06 36
359 CentOS cli 무선랜 LynX 2018-06-07 65
358 APM 윈도우에 APM 페키지 설치 file LynX 2018-05-04 35
357 APM MySQLTuner 설치 LynX 2018-04-27 32
» CentOS CentOS7 커널 업데이트 LynX 2018-04-23 107
355 HTML Tag CSS 여러가지 모양 만들기 LynX 2018-02-08 96
354 Linux wkhtmltopdf wkhtmltoimage install LynX 2018-01-31 158
353 APM LZ4_LIBS Not Found (CentOS7, MariaDB 10.1.29) LynX 2018-01-03 89
352 APM mysql ./configure LynX 2017-12-15 125
351 APM PHP-7.2.0 LynX 2017-12-12 313
350 Linux libiconv LynX 2017-12-08 48
349 Linux 라그나로크 LynX 2017-12-07 196
348 Linux modsecurity LynX 2017-12-06 97
347 CentOS centos7 groonga install LynX 2017-12-04 152
346 CentOS CemtOS 7.3 base Trinitycore 3.3.5 Compile file LynX 2017-11-13 185
345 CentOS CentOS7 GCC-5.1.1 yum install LynX 2017-11-10 86
344 APM http 프로토콜 https 로 리다이렉션 LynX 2017-07-14 79

XE Login