Last active
August 8, 2023 06:33
-
-
Save zhangguanzhang/d006be666922f001be13b7a2432d96b3 to your computer and use it in GitHub Desktop.
centos7.9 kernel update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/jinwyp/one_click_script/blob/master/install_kernel.sh | |
# https://vault.centos.org/altarch/7.8.2003/kernel/x86_64/Packages/ | |
altarch_kernel_name="kernel" | |
altarch_kernel_version="4.19.113-300" | |
altarchDownloadUrl="https://vault.centos.org/altarch/7.8.2003/kernel/x86_64/Packages" | |
wget ${altarchDownloadUrl}/${altarch_kernel_name}-${altarch_kernel_version}.el7.x86_64.rpm | |
wget ${altarchDownloadUrl}/${altarch_kernel_name}-core-${altarch_kernel_version}.el7.x86_64.rpm | |
wget ${altarchDownloadUrl}/${altarch_kernel_name}-devel-${altarch_kernel_version}.el7.x86_64.rpm | |
wget ${altarchDownloadUrl}/${altarch_kernel_name}-headers-${altarch_kernel_version}.el7.x86_64.rpm | |
wget ${altarchDownloadUrl}/${altarch_kernel_name}-modules-${altarch_kernel_version}.el7.x86_64.rpm | |
wget ${altarchDownloadUrl}/${altarch_kernel_name}-tools-${altarch_kernel_version}.el7.x86_64.rpm | |
wget ${altarchDownloadUrl}/${altarch_kernel_name}-tools-libs-${altarch_kernel_version}.el7.x86_64.rpm | |
# yum install -y linux-firmware | |
yum localinstall -y kernel-*el7.x86_64.rpm | |
# 查看列表 | |
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg |
Author
zhangguanzhang
commented
Aug 8, 2023
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment