Exam EX200 All QuestionsBrowse all questions from this exam
Question 16

SIMULATION -

Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available.

    Correct Answer:

    To upgrade the kernel to 2.6.36.7.1 and configure the system to start with the new kernel while keeping the old one available, follow these steps: First, download the new kernel rpm package to the /boot directory. Then, install the new kernel using the rpm command. The command `rpm -ivh kernel-xxxx.rpm` will install the new kernel without removing the old one. After installation, update the GRUB configuration to set the new kernel as the default. You can do this by editing the /etc/grub.conf file and setting the `default` parameter to 0, which will select the latest installed kernel by default. Save the changes and reboot the system. After rebooting, verify that the system is running the new kernel using the `uname -r` command. This method ensures that the system retains the old kernel for fallback purposes while booting by default with the new kernel.

Discussion
Roldo97

To update Kernel: #rpm -ivh [kernel.rmp] --> Install a rpm package in verbose mode OR #yum install kernel --> (If you're using repositories) It's important to know that this doesn't replace the actual kernel. It is installed along the actual kernel and you can select any available kernel to boot the system in case of troubleshooting. Also, the system onlny saves a maximum of 4 kernels. If you already have 4, and install a 5th kernel, this one will replace the oldest kernel. ----------- To set a default kernel: - We can use grubby command tool. #grubby --default-kernel --> Get default kernel (It's probably that the latest installed be selected) #grubby --info=ALL | grep ^kernel --> This command list all kernel paths for the available kernels. #grubby --set-default=[kernel path obtained from the above command] Reboot and verify #uname -r --> Get the loaded kernel

AbidBajwa

well explained and very informative

adolfoale

# yum update kernel

kitkat

Although what Roldo97 mentioned above is detailed, this should also work because once new Kernel is installed it automatically becomes the first one to boot with.

kitkat

It would be different story if a specific version will be mentioned and we need to make that as the first one. Then we need to use the options with grubby to set to defined kernel number.

noobasty

Is this still part of syllabus?

sovafal192

rpm -ivh [kernel.rpm] ###* change the default kernel: https://access.redhat.com/solutions/4326431 ###* fastest to my mind: grep ^id /boot/loader/entries/* ###* select the id of the installed kernel grub2-set-default <ID>