2015년 8월 2일 일요일

RHEL/CentOS downgrading to a previously-installed kernel without using yum

Suppose you did a kernel upgrade and the current version is now 2.6.18-308.el5 (stock kernel for RHEL 5.8) but you want to downgrade to 2.6.18-194.el5 (stock kernel for RHEL 5.5) which is still installed on the system and appears in grub.conf.

1. Edit /boot/grub/grub.conf and make sure that the default entry points to the previous kernel (probably default=1, but YMMV)

2. Reboot the system. You should now boot into the previous kernel version. After logging in, remove the higher kernel version from the system:

rpm -e kernel-2.6.18-308.el5 kernel-devel-2.6.18-308.el5

Now all traces of the higher-version kernel will be gone and it will not appear in grub.conf

What if you want to do a kernel downgrade but the previous kernel version is not installed?

If you have a RedHat subscription, first download the required kernel packages from the RedHat website. In the case of RHEL 5.X, all you need are the kernel and kernel-devel packages, but for RHEL6.X  I usually need 4 packages - kernel-firmware, bfa-firmware (for Brocade Fibre Channel Host Bus Adapter), kernel, and kernel-devel

In this second example, let's assume kernel 2.6.18-308.el5 is the current kernel version but that I would like to install 2.6.18-194.el5 and make it the default kernel.

1. rpm -ivh kernel-2.6.18-194.el5 kernel-devel-2.6.18-194.el5

This will install kernel-2.6.18-194 and make it the default in /boot/grub/grub.conf

You can verify that the older kernel has been installed by invoking cat /boot/grub/grub.conf and checking that the older kernel appears in the GRUB menu. If you so desire, after rebooting you can manually remove the other kernel with rpm -e




댓글 21개:

  1. Hello, an amazing Information dude. Thanks for sharing this nice information with us.

    답글삭제
  2. I got here much interesting stuff. The post is great! Thanks for sharing it! IQ Test

    답글삭제
  3. Great Content here some tips regarding HP Printer, We support all types of HP printer troubleshooting and service.Just enter the model number of your printer in www.123.hp.com to identify the software and drivers your printer requires.Download and install it in your mac and 'Run' the file.The process is easy however if you have any doubts or queries regarding HP printers contact us

    답글삭제
  4. There may be several reasons why your Roku can desist from connecting to the Wi Fi network that is protected by a password. First and foremost, make sure that it is a trusted network because sometimes a Roku may refuse to connect to public networks. In which case, you may have to try reconnecting to a much safer wireless network. In case it is a home network that it is not connecting to, then you must really go through some important steps before you begin blaming the network or your device. Read More on Roku support number | Filmrise on Roku | Diynetwork.com/roku | usanetwork.com/roku

    답글삭제
  5. By logging into your registered roku account, you can start the activation process at an instant. All you have to do is, turn on your TV connected with the Roku device. The moment you turn on the TV, the Roku logo will get displayed. Now the link code appears and note it down. Now navigate to the Roku.com/link webpage, paste the link code you had already taken note of. Finally click the submit option and the device is now activated without any complications.
    For enquiries regarding the Roku Activation Code , visit our website.

    답글삭제
  6. You can setup your Roku device correctly with their experts without any hassle. Once the Roku box is connected to the TV, we just need to doRoku activation for watching our favorite shows. Roku.com/link has become a leading destination for connecting with Roku device.

    답글삭제
  7. It is a valid link to activate www.amazon.com/mytv login or primevideo mytv samsung in your device. You can watch Amazon prime video on amazon mytv, just you need to enter a 6 digit amazon registration code on your device.

    답글삭제
  8. Hi Very Nice Blog I Have Read Your Post It Is Very Informative And Useful Thanks For Posting And Sharing With Us. Thanks for sharing! Know about fubo.tv/activate.

    답글삭제
  9. I hope to see more post from you. Thank you for sharing this post. Your blog posts are more interesting and impressive

    TN ESEVAI, TN ESEVAI Application Status Check, Apply Online for Income and OBC Certificate, Login@ tnesevai.tn.gov.in

    답글삭제
  10. Your blog is filled with unique good articles! I was impressed how well you express your thoughts.

    Yuva Scheme 2021 | PM Modi Mentoring Yuva Scheme | PM Yuva Scheme | Apply Online

    답글삭제
  11. As a professional supplier of Diablo 2 Resurrected Items, MMOWTS is selling some rare Diablo 2 Resurrected Items that are difficult to obtain in the game. At the same time, if you lack runes, you can also buy Diablo 2 Resurrected Items on MMOWTS. If you are interested, you can go to the website to have a look. In addition, the most important point is that the transaction process in MMOWTS will also be safe and fast.

    답글삭제
  12. Amazon.com/mytv- Turn on your Smart TV. Go to the homepage and then go to Amazon Prime App. If you don't already have it, download it from your play store or app store. Open the app and click the sign-in button.amazon code
    googe play redeem code
    amazon.com/code
    paypal login
    amazon.com/code

    답글삭제
  13. Amazon only offers certain TV shows and movies that can be streamed unlimitedly. You'll need to pay for each piece of media, including brand-new movies or episodes that have been broadcast recently.amazon mytv
    google play redeem code

    답글삭제