How to change the default kernel in GRUB for RHEL and CentOS

How to change the default kernel in  GRUB for CentOS 7 and  RHEL 7 servers?


OS Version: RHEL and  CentOS 7

Step 1: Get installed  kernel versions

# awk -F\' /^menuentry/{print\$2} /etc/grub2.cfg
0- Red Hat Enterprise Linux Server (3.10.0-1062.7.1.el7.x86_64) 7.7 (Maipo)
1- Red Hat Enterprise Linux Server (3.10.0-1062.1.2.el7.x86_64) 7.7 (Maipo)
2- Red Hat Enterprise Linux Server (3.10.0-693.el7.x86_64) 7.4 (Maipo)
3- Red Hat Enterprise Linux Server (0-rescue-39228403a82a4e29afb7e5ca1a869adb) 7.4 (Maipo)

Step 2: Use grub2-set-default command

#grub2-set-default 1

Step 3: Check grubenv  file

# cat /boot/grub2/grubenv |grep saved

Step 4: Rebuild Grub.cfg file

#ls  -ld  /boot/grub2/grub.cfg
-rw-r--r--. 1 root root 6083 Dec  3 15:55 /boot/grub2/grub.cfg
#grub2-mkconfig -o /boot/grub2/grub.cfg

#ls  -ld  /boot/efi/EFI/redhat/grub.cfg
#grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

Step 5: Restart Server

#shutdown  -r  now


I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me


  1. It can lead to serious liver disease. how to get viagra to work ( generic viagra india

  2. Khloe Kardashian reveals her VERY shapely derriere in skintight gym leggings... viagra walgreens

  3. Same goes for people bedding. does viagra have a generic

  4. 16. Cauchon, Dennis. D.A.R.E. doesn't work: Studies find drug program not effective. USA Today, 10-11-93. is buying generic viagra online safe

  5. There are more than 100 different types of cancer with a wide range of different signs and symptoms which can manifest in different ways. safest place to buy viagra online

  6. But the initial treatment of a first dislocation is typically the same: the patient will be sedated made sleepy and by manipulating the joint the ball usually can be put back into the socket. buy generic viagra online canada buying viagra online safely

  7. Mix the ingredients well so that they are completely dissolved in water. canadian online pharmacy viagra viagra online store

  8. Chemotherapy Drugs for Ovarian Cancer There are several chemotherapy drugs used to treat ovarian cancer. viagra without prescription online viagra online no prior prescription

  9. Who can prescribe mifepristone and misoprostol? best viagra online reviews

  10. The hair you can see is actually a string of dead keratin cells. buy generic viagra online fast shipping what is generic viagra

  11. Acute pulmonary haemorrhage in an infant during induction of general anaesthesia. is generic viagra as good as real viagra

  12. Some risk factors include conditions that cause difficulty swallowing or problems with regurgitation such as laryngeal paralysis, megaesophagus, cleft palate, chronic vomiting, altered states of consciousness, and tumors of the respiratory system. buy viagra and cialis online

  13. So the blood has the most crucial amount of magnesium because when it drops you will suffer heart attack and die. marley generic viagra

  14. buying viagra online reddit safe generic viagra reddit viagra online

  15. how to buy viagra online viagra online bestellen buy generic viagra online with mastercard

  16. compra viagra peru ou acheter du viagra a montreal

  17. is it safe to take viagra after heart attack i'm young and need viagra can 12 year olds take viagra

  18. ganaric viagra buyu viagra online buy viagra online without prescription

  19. prazosin and viagra viagra ne zaman etki eder quanto tempo efeito viagra

  20. viagra patent ends viagra covered on line by insurance

  21. Viagra online best price sildenafil generic without prescription

  22. Buy viagra super active legal to buy viagra online

  23. Viagra otc usa buy viagra online free shipping

  24. potency of viagra viagra gag

  25. Where can buy viagra viagra super active price

  26. Generic sildenafil sale online purchase viagra in uk

  27. Buy viagra pharmacy buy cheap viagra online without prescription

  28. Viagra tablets online australia viagra online usa cheap

  29. Canadian pharmacies viagra generic viagra 50mg

  30. Viagra-50mg cheap viagra prescription online

  31. Sildenafil prices 20 mg price of viagra in us

  32. Viagra soft tabs 50 mg buy sildenafil 50mg uk

  33. Purchase cheap viagra order sildenafil canada

  34. Viagra online 150mg viagra generic in united states

  35. Buy viagra online 100mg cheapest brand viagra online

  36. Sildenafil prices 20 mg buy viagra generic canada

  37. Order viagra online pharmacy generic viagra from canada

  38. Best sildenafil brand generic viagra 50 mg tablet online

  39. Buy viagra new zealand real viagra canada

  40. Viagra online 150mg order viagra from uk

  41. Generic drug for viagra viagra coupon online

  42. Online pharmacy viagra no prescription female viagra drug

  43. Generic female viagra how to order generic viagra online

  44. 20 mg sildenafil daily cost of viagra 100mg in australia

  45. Order viagra online singapore generic viagra in india online

  46. Viagra 150 mg cost of sildenafil in canada

  47. Viagra soft tabs online buy canadian generic viagra online

  48. Viagra price in south africa where to buy real generic viagra

  49. Buy cheap viagra online uk where to buy otc viagra

  50. Best viagra capsule purchase sildenafil

  51. Sildenafil online without prescription viagra price without insurance

  52. How can i get viagra pills cheap prices for viagra

  53. Genuine viagra best price viagra tablets india

  54. viagra pills no prescription where can i get viagra online generic viagra without rx

  55. How much is viagra in canada viagra in canada cost

  56. order viagra online in usa how to buy generic viagra online indian viagra online

  57. online viagra paypal order viagra online uk generic viagra pills

Leave a Reply