close

How to Install or upgrade to "archived-Kernel 6.y" on CentOS Stream 9

6.y = the version of file that who's location is in "archive" folder

Step 1 - Current kernel version:
$uname -r

Step 2 - Install and Enable ELRepo:
Import the public key
$rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Install the ELRepo repository.
CentOS Stream/RHEL 9: $dnf install https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm
CentOS Stream/RHEL 8: $dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
Modify repo file to 
$sed -i 's-/elrepo/-/elrepo/archive/-g' /etc/yum.repos.d/elrepo.repo
$sed -i "/baseurl/d" /etc/yum.repos.d/elrepo.repo
$sed -i "/mirrorlist/d" /etc/yum.repos.d/elrepo.repo
$sed -i "s-\t-baseurl=-g" /etc/yum.repos.d/elrepo.repo

Step 3 - Install and Enable ELRepo:
Once the repository has been enabled, you can use the following command to list the available kernel related packages:
$dnf --disablerepo="*" --enablerepo="elrepo-kernel" list available

Step 4 - Install kernel: 
To: Install the latest mainline stable kernel:
$dnf --enablerepo=elrepo-kernel install kernel-ml-[archive version]
$dnf --enablerepo=elrepo-kernel install kernel-ml-6.11.1

Step 5 - Verify the kernel version: 
By default, the system will set the newly installed kernel as the default version to use and boot with.
You can verify by command:
$grubby --default-kernel

Step 6 - Reboot the system to boot with the latest kernel installed. 
$reboot

After the system reboot OS
Step 7 - Verify the system running with the latest kernel installed
$uname -r

====================================================================================================

How to Install or upgrade to "latest-Kernel 6.x" on CentOS Stream 9

Step 1 - Current kernel version:
$uname -r

Step 2 - Install and Enable ELRepo:
Import the public key
$rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Install the ELRepo repository.
CentOS Stream/RHEL 9: $dnf install https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm
CentOS Stream/RHEL 8: $dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm

Step 3 - Install and Enable ELRepo:
Once the repository has been enabled, you can use the following command to list the available kernel related packages:
$dnf --disablerepo="*" --enablerepo="elrepo-kernel" list available

Step 4 - Install kernel: 
To: Install the latest mainline stable kernel:
$dnf --enablerepo=elrepo-kernel install kernel-ml

Step 5 - Verify the kernel version: 
By default, the system will set the newly installed kernel as the default version to use and boot with.
You can verify by command:
$grubby --default-kernel

Step 6 - Reboot the system to boot with the latest kernel installed. 
$reboot

After the system reboot OS
Step 7 - Verify the system running with the latest kernel installed
$uname -r

====================================================================================================
 

arrow
arrow
    文章標籤
    CentOS kernel-ml
    全站熱搜
    創作者介紹
    創作者 吾給力 的頭像
    吾給力

    吾給力的部落格

    吾給力 發表在 痞客邦 留言(0) 人氣()