我希望将内核更新为最新版本,或者至少更新内核-3.10.0-514.13.1.el7。当前,它显示了aws服务器中的以下内核版本。使用linux centos 7。
希望至少更新内核版本-3.10.0-514.13.1.el7
将"yum -y更新内核“更新到最新内核>=内核-3.10.0-514.13.1.el7 ?
uname -sr
Linux 3.10.0-327.28.2.el7.x86_64
cat /etc/*release
CentOS Linux release 7.2.1511 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"发布于 2017-05-19 07:39:20
如果您高兴/希望使用“当前”内核,则可以启用elrepo并安装kernel-ml
检查您的/etc/yum.repos.d/elrepo.repo --如果没有;http://elrepo.org/tiki/tiki-index.php,它将为您提供如何添加和启用enterprise和启用内核部分的说明。
如果你愿意的话,你应该可以一直升级到4.11.1。内核-ml安装与旧的内核-x文件兼容,可以在系统上共存。内核-ml也有固件、头和libs文件。
yum info kernel-ml
Name : kernel-ml
Arch : x86_64
Version : 4.11.1
Release : 1.el6.elrepo
Size : 184 M
Repo : installed
From repo : elrepo-kernel
Summary : The Linux kernel. (The core of any Linux-based operating system.)
URL : https://www.kernel.org/
License : GPLv2
Description : This package provides the Linux kernel (vmlinuz), the core of any
: Linux-based operating system. The kernel handles the basic functions
: of the OS: memory allocation, process allocation, device I/O, etc.一旦您安装了新内核,您将需要检查您的grub.conf文件,该文件告诉操作系统要从哪个内核(如果已经安装了几个内核)启动。文件应该位于;位于文件顶部的某个位置的/etc/grub.conf应该是行default=x,其中x通常位于0或1下面,您可能有一个内核列表。列表中的第一个通常是最新的,是0,然后将其编号下来。
示例grub.conf引导内核4.11.1-1;
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (4.11.1-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-4.11.1-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_xs-lv_root rd_NO_LUKS rd_LVM_LV=vg_xs/lv_swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=la
tarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=uk rd_LVM_LV=vg_xs/lv_root rd_NO_DM audit=0
initrd /initramfs-4.11.1-1.el6.elrepo.x86_64.img
title CentOS (4.11.0-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-4.11.0-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_xs-lv_root rd_NO_LUKS rd_LVM_LV=vg_xs/lv_swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=la
tarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=uk rd_LVM_LV=vg_xs/lv_root rd_NO_DM audit=0
initrd /initramfs-4.11.0-1.el6.elrepo.x86_64.img发布于 2017-05-19 06:09:58
是的,该命令将更新内核及其所有依赖项。但是,更新内核只是操作系统的一部分,使用yum update更新整个系统是明智的,除非您对某些包版本有特定的需求。我总是省略-y选项,这样我就可以查看正在更新/安装的内容。
https://stackoverflow.com/questions/44061068
复制相似问题