You cannot see this page without javascript.

CentOS7 커널 업데이트

CentOS 조회 수 19 추천 수 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/053/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수
358 APM 윈도우에 APM 페키지 설치 file LynX 2018-05-04 9
357 APM MySQLTuner 설치 LynX 2018-04-27 10
» CentOS CentOS7 커널 업데이트 LynX 2018-04-23 19
355 HTML Tag CSS 여러가지 모양 만들기 LynX 2018-02-08 64
354 Linux wkhtmltopdf wkhtmltoimage install LynX 2018-01-31 77
353 APM LZ4_LIBS Not Found (CentOS7, MariaDB 10.1.29) LynX 2018-01-03 65
352 APM mysql ./configure LynX 2017-12-15 113
351 APM PHP-7.2.0 LynX 2017-12-12 273
350 Linux libiconv LynX 2017-12-08 37
349 Linux 라그나로크 LynX 2017-12-07 119
348 Linux modsecurity LynX 2017-12-06 86
347 CentOS centos7 groonga install LynX 2017-12-04 40
346 CentOS CemtOS 7.3 base Trinitycore 3.3.5 Compile file LynX 2017-11-13 168
345 CentOS CentOS7 GCC-5.1.1 yum install LynX 2017-11-10 62
344 APM http 프로토콜 https 로 리다이렉션 LynX 2017-07-14 67
343 Programing make - 07 접미사 규칙 LynX 2017-02-22 921
342 Programing make - 06 make 규칙 LynX 2017-02-22 82
341 Programing make - 05 내부 매크로 LynX 2017-02-22 193
340 Programing make - 04 매크로 file LynX 2017-02-22 83
339 Programing make - 03 make의 사용 file LynX 2017-02-22 84

XE Login