{"id":251521,"date":"2022-09-09T09:38:53","date_gmt":"2022-09-09T01:38:53","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=251521"},"modified":"2022-09-05T04:40:21","modified_gmt":"2022-09-04T20:40:21","slug":"centos78-install-linux-kernel5","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos78-install-linux-kernel5.html","title":{"rendered":"CentOS7\/8 \u5b89\u88c5 5+ \u4ee5\u4e0a\u7684Linux kernel"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nCentOS\u4ee5\u7a33\u5b9a\u8457\u79f0\uff0c\u7a33\u5b9a\u5728\u53e6\u5916\u4e00\u65b9\u9762\u5c31\u662f\u4fdd\u5b88\u3002\u6240\u4ee5CentOS7\u8fd8\u5728\u75283.10\uff0cCentOS8\u4e5f\u624d\u662f4.18\u3002\u800c\u5f53\u524d\u6700\u65b0\u7684Linux Kernel\u90fd\u66f4\u65b0\u52306.0 rc3\u4e86\u3002\u5176\u4ed6\u8f83\u65b0\u7684\u53d1\u884c\u7248\u90fd\u7528\u4e0a\u4e865.10+\u7684\u7248\u672c\u3002\u672c\u6587\u7b80\u5355\u4ecb\u7ecd\u5982\u4f55\u5728CentOS7\u30018\u4e0a\u76f4\u63a5\u5b89\u88c55.1+\u4ee5\u4e0a\u7248\u672c\u7684\u7b2c\u4e09\u65b9\u5185\u6838\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u4f7f\u7528teddysun\u7f16\u8bd1\u76845.15 Kernel\u5305<\/strong><\/div>\n

ELRepo Project \u63d0\u4f9b\u7684\u5185\u6838\u7248\u672c\u4e00\u76f4\u90fd\u6bd4\u8f83\u7a33\u5b9a\uff0c\u4f46\u662f\u8fd9\u4e2a\u5e93 kernel-ml \u603b\u662f\u5728\u65b0\u7684\u5927\u7248\u672c\u51fa\u6765\u4ee5\u540e\u5c31\u4e0d\u518d\u63d0\u4f9b\u65e7\u7684\u7248\u672c\u3002\u6bd4\u5982 kernel-ml \u5206\u652f 5.15 \u5230 5.15.13 \u4ee5\u540e\u5c31\u4e0d\u518d\u66f4\u65b0\u4e86\u30025.15 \u662f\u6700\u65b0\u7684 LTS \u7248\u672c\uff0c\u79cb\u6c34\u5927\u795e\u7ee7\u7eed\u7f16\u8bd1 5.15.x \u7684\u6700\u65b0\u7248\u672c\uff0c\u76f4\u5230 5.15.x \u4e0d\u518d\u66f4\u65b0\u4e3a\u6b62\u3002<\/p>\n

CentOS7<\/strong><\/span><\/div>\n

\u6267\u884c\u4ee5\u4e0b\u4e09\u4e2a\u547d\u4ee4\u540ereboot\u91cd\u542f\u3002<\/p>\n

wget https:\/\/dl.lamp.sh\/kernel\/el7\/kernel-ml-5.15.63-1.el7.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el7\/kernel-ml-devel-5.15.63-1.el7.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el7\/kernel-ml-headers-5.15.63-1.el7.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el7\/kernel-ml-tools-5.15.63-1.el7.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el7\/kernel-ml-tools-libs-5.15.63-1.el7.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el7\/kernel-ml-tools-libs-devel-5.15.63-1.el7.x86_64.rpm<\/pre>\n
yum localinstall kernel-ml-* -y --skip-broken<\/pre>\n

\u6210\u529f\u5b89\u88c5\u540e\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u672c\u673a\u5df2\u7ecf\u5b58\u5728\u7684\u5185\u6838\u5217\u8868\uff1a<\/p>\n

awk -F\\' '$1==\"menuentry \" {print i++ \" : \" $2}' \/boot\/grub2\/grub.cfg<\/pre>\n

\u8bbe\u7f6e\u542f\u52a8\u6700\u65b0\u5185\u6838\uff08\u4e00\u822c\u6700\u65b0\u5b89\u88c5\u7684\u5185\u6838\u542f\u52a8\u987a\u5e8f\u4e3a 0\uff09<\/p>\n

grub2-set-default 0<\/pre>\n
reboot<\/pre>\n
CentOS8<\/strong><\/span><\/div>\n
wget https:\/\/dl.lamp.sh\/kernel\/el8\/kernel-ml-5.15.63-1.el8.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el8\/kernel-ml-headers-5.15.63-1.el8.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el8\/kernel-ml-core-5.15.63-1.el8.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el8\/kernel-ml-devel-5.15.63-1.el8.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el8\/kernel-ml-modules-5.15.63-1.el8.x86_64.rpm \\\r\nhttps:\/\/dl.lamp.sh\/kernel\/el8\/kernel-ml-modules-extra-5.15.63-1.el8.x86_64.rpm<\/pre>\n
 yum localinstall kernel-ml-* --allowerasing -y<\/pre>\n

\u6210\u529f\u5b89\u88c5\u540e\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u672c\u673a\u5df2\u7ecf\u5b58\u5728\u7684\u5185\u6838\u542f\u52a8\u987a\u5e8f\uff1a<\/p>\n

grub2-editenv list<\/pre>\n

\u4e00\u822c\u60c5\u51b5\u4e0b\u8fd4\u56de\u7684\u5c31\u662f\u6700\u65b0\u7248\u7684\u5185\u6838\u4fe1\u606f\u3002CentOS Stream 8 \/ Rocky Linux 8 \/ AlmaLinux 8 \u65e0\u9700\u624b\u52a8\u8bbe\u7f6e\u542f\u52a8\u6700\u65b0\u5185\u6838\u3002<\/p>\n

reboot<\/pre>\n
\u4f7f\u7528ELRepo\u66f4\u65b0\u6700\u65b0\u7a33\u5b9a\u7248\u5185\u6838<\/strong><\/div>\n

\u76f4\u63a5\u4f7f\u7528ELRepo Project \u63d0\u4f9b\u7684\u5185\u6838\uff0c\u901a\u8fc7ELRepo\u5b89\u88c5\u6700\u65b0\u7a33\u5b9a\u7248\u7684Linux Kerenl\u3002\u5f53\u524d\u662f5.19.5\u3002<\/p>\n

CentOS7<\/strong><\/span><\/div>\n
yum install https:\/\/www.elrepo.org\/elrepo-release-7.el7.elrepo.noarch.rpm -y<\/pre>\n
yum --enablerepo=elrepo-kernel install kernel-ml -y &&\r\nyum --enablerepo=elrepo-kernel install kernel-ml-devel -y <\/pre>\n
grub2-set-default 0<\/pre>\n
reboot<\/pre>\n
CentOS8<\/strong><\/span><\/div>\n
yum install https:\/\/www.elrepo.org\/elrepo-release-8.el8.elrepo.noarch.rpm -y<\/pre>\n
yum --enablerepo=elrepo-kernel install kernel-ml -y &&\r\nyum --enablerepo=elrepo-kernel install kernel-ml-devel -y <\/pre>\n
reboot<\/pre>\n

\u4ee4\u4eba\u60ca\u559c\u7684\u662fCentOS 9 Stream x64\u5df2\u7ecf\u7528\u4e0a\u4e865.14\u7684\u5185\u6838,\u6240\u4ee5\u4e0d\u5fc5\u8d58\u8ff0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

ELRepo Project \u63d0\u4f9b\u7684\u5185\u6838\u7248\u672c\u4e00\u76f4\u90fd\u6bd4\u8f83\u7a33\u5b9a\uff0c\u4f46\u662f\u8fd9\u4e2a\u5e93 kernel-ml \u603b\u662f\u5728\u65b0\u7684\u5927\u7248\u672c\u51fa […]<\/p>\n","protected":false},"author":362,"featured_media":251585,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-251521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/251521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=251521"}],"version-history":[{"count":15,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/251521\/revisions"}],"predecessor-version":[{"id":252041,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/251521\/revisions\/252041"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/251585"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=251521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=251521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=251521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}