How to install a specific version of kernel in Yum?

How to install a specific version of kernel in Yum?

You can install a specific version of a package by specifying the version along with the package name with yum. For example, to install the kernel development files for the specific kernel you’re running, type yum install kernel-devel-3.9.5-301.fc19 You can do a similar command to get the right kernel-headers package.

How to install kernel devel in Fedora-Yum?

$ sudo yum install “kernel-devel-uname-r == $ (uname -r)” Loaded plugins: auto-update-debuginfo, changelog, langpacks, refresh-packagekit No package kernel-devel-uname-r == 3.12.6-200.fc19.x86_64 available. Error: Nothing to do However I’ve notice this issue as well where specific versions of headers are not present in the repositories.

How to install kernel devel different from my kernel version?

You can do a similar command to get the right kernel-headers package. It happens some times also to me, installing VMBoxAdditions after a system update. And then magically it works.

Do you need to use YUM to install packages?

Hence, you may need to activate proper subscription and then use “yum” to install packages as required. Otherwise, you may pull out required packages on a system which is subscribed (using “yumdownloader”, available with yum-utils package) and then move them, or mount an ISO image of RHEL7.x and create a local repository and install packages.

Is there a command to upgrade the kernel?

To upgrade the kernel, you can run this yum command: By default, this command should ask for confirmation to install new kernel: Once the new kernel is installed you need to load it. To do so, you need to reboot the server:

How to check Linux kernel version in CentOS 7?

If you run CentOS 7 on a Dedicated Server or a KVM virtual server, you could see “el7” in the kernel version, which refers to Red Hat Enterprise Linux, from which CentOS is derived: # uname -r 3.10.0-693.11.6.el7.x86_64 If you are running CloudLinux, you could see “lve” in the kernel version: # uname -r 3.10.0-714.10.2.lve1.5.9.el7.x86_64