Skip to content

Instantly share code, notes, and snippets.

@zhangguanzhang
Last active August 8, 2023 06:33
Show Gist options
  • Save zhangguanzhang/d006be666922f001be13b7a2432d96b3 to your computer and use it in GitHub Desktop.
Save zhangguanzhang/d006be666922f001be13b7a2432d96b3 to your computer and use it in GitHub Desktop.
centos7.9 kernel update
# 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
@zhangguanzhang
Copy link
Author

zhangguanzhang commented Aug 8, 2023

altarch_kernel_version="5.4.105-200"
altarch_kernel_version="5.4.225-200"
altarchDownloadUrl="http://mirror.centos.org/altarch/7/kernel/x86_64/Packages"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment