Exam EX200 All QuestionsBrowse all questions from this exam
Question 31

SIMULATION -

Install the Kernel Upgrade.

Install suitable kernel update from:

http://server.domain11.example.com/pub/updates.

Following requirements must be met:

Updated kernel used as the default kernel of system start-up.

The original kernel is still valid and can be guided when system starts up.

    Correct Answer:

    To install the kernel upgrade, follow these steps: 1. Open a terminal. 2. Navigate to the directory where you want to download the kernel file. 3. Use the command wget http://server.domain11.example.com/pub/updates to download the kernel update package. 4. Install the downloaded package using the command rpm -ivh kernel-*.rpm. Make sure the package name matches the downloaded file. 5. Update the boot configuration by running grub2-mkconfig -o /boot/grub2/grub.cfg. This will refresh the GRUB configuration to include the new kernel. 6. To make the new kernel the default for system start-up, use the command grub2-set-default 0 if the new kernel is the first entry in the GRUB list. Verify the entries in the GRUB configuration using grep '^menuentry' /boot/grub2/grub.cfg to understand the index positions. 7. Ensure the original kernel can still be selected at boot by verifying the grub configuration without deleting the old kernel entry. 8. Reboot the system using reboot. 9. After reboot, confirm the current kernel version with uname -r. The new kernel version should be displayed, indicating that the upgrade was successful.

Discussion
gaven186

provide alternative for discussion # uname -r # yum --enablerepo=url list available | grep "kernel-" # wget url/kernel-package.rpm # dnf install ./kernel-<version>.rpm # grep '^menuentry' /boot/grub2/grub.cfg //list all the menu entries, new kernel at 0 # grub2-set-default 0 # uname -a (to see current kernel) # reboot

gaven186

ignore yum --enablerepo=url list available | grep "kernel-" since we are installing rpm locally

PENNSHARK

wget http://server.domain11.example.com/pub/updates/kernel-package.rpm sudo yum install kernel-package.rpm grub2-mkconfig -o /boot/grub2/grub.cfg grubby --info=ALL (to check which kernel index it is) grubby --set-default-index (change to what index the kernel is) uname -a (to see current kernel) reboot uname -a to check for proof