赞
踩
为了方便,先切换到root用户
$ su
# uname -a
Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
# yum -y update
# 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
Retrieving http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:elrepo-release-7.0-3.el7.elrepo ################################# [100%]
# yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
1. elrepo-kernel: mirror.rackspace.com
elrepo-kernel | 3.0 kB 00:00:00
elrepo-kernel/primary_db | 2.0 MB 00:00:01
Available Packages
elrepo-release.noarch 7.0-5.el7.elrepo elrepo-kernel
kernel-lt.x86_64 5.4.162-1.el7.elrepo elrepo-kernel
kernel-lt-devel.x86_64 5.4.162-1.el7.elrepo elrepo-kernel
kernel-lt-doc.noarch 5.4.162-1.el7.elrepo elrepo-kernel
kernel-lt-headers.x86_64 5.4.162-1.el7.elrepo elrepo-kernel
kernel-lt-tools.x86_64 5.4.162-1.el7.elrepo elrepo-kernel
kernel-lt-tools-libs.x86_64 5.4.162-1.el7.elrepo elrepo-kernel
kernel-lt-tools-libs-devel.x86_64 5.4.162-1.el7.elrepo elrepo-kernel
kernel-ml.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
kernel-ml-devel.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
kernel-ml-doc.noarch 5.15.5-1.el7.elrepo elrepo-kernel
kernel-ml-headers.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
kernel-ml-tools.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
kernel-ml-tools-libs.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
kernel-ml-tools-libs-devel.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
perf.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
python-perf.x86_64 5.15.5-1.el7.elrepo elrepo-kernel
# yum --enablerepo=elrepo-kernel install kernel-ml
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* elrepo: hkg.mirror.rackspace.com
* elrepo-kernel: hkg.mirror.rackspace.com
* extras: mirror.lzu.edu.cn
* updates: mirror.lzu.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package kernel-ml.x86_64 0:5.15.5-1.el7.elrepo will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================
Installing:
kernel-ml x86_64 5.15.5-1.el7.elrepo elrepo-kernel 55 M
Transaction Summary
=============================================================================================================================================================================================
Install 1 Package
Total download size: 55 M
Installed size: 252 M
Is this ok [y/d/N]: y
Downloading packages:
kernel-ml-5.15.5-1.el7.elrepo.x86_64.rpm | 55 MB 00:00:53
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : kernel-ml-5.15.5-1.el7.elrepo.x86_64 1/1
Verifying : kernel-ml-5.15.5-1.el7.elrepo.x86_64 1/1
Installed:
kernel-ml.x86_64 0:5.15.5-1.el7.elrepo
Complete!
# reboot
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。