RHEL7: Update the kernel package appropriately to ensure a bootable system.

Share this link

Note: This is an RHCSA 7 exam objective.

To install a new kernel package, type:

# rpm -ivh kernel.rpm

Note: Don’t use the -U option which replaces the current kernel instead of adding it to the boot menu.

 

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Leave a Reply

56 Comments on "RHEL7: Update the kernel package appropriately to ensure a bootable system."

Notify of
Sort by:   newest | oldest
vivek
Member
vivek

“rpm -ivh kernel.rpm”

Do we just have to run this command? Is this package available automatically or do we have to configure any repo? do we have to change anything in grub.config file?

Your site is helping a lot to learn, thanks for that.

bajeradai
Member
bajeradai

Could you please write complete steps for updating new kernel?
I think before # rpm -ivh kernel.rpm, there should be # wget kernel.rpm.
Also grub2-set-default 0 to set new kernel and if new kernel is in second line of grub2 menu, grub2-set-default 1 should be used in last step.
Thanks.

arclight
Member
arclight

This is great information, thanks again. I have a big issue in setting up the local repositories as pre-dependency for this Question (and pretty much for all other questions requiring yum installation). As I understand it, a new installation of the server during the exam would contain no .repo files in the /etc/yum.repos.d directory, and it assumed that we need to set this up first and foremost, is this correct?

arclight
Member
arclight

Thanks for that. Could you please point me to the appropriate certdepot page for repos setup, particularly from the RHCSA exam perspective?

arclight
Member
arclight

Much appreciated, thanks

bajeradai
Member
bajeradai

Can we just run this command to upgrade new kernel from ftp or given path?
# yum update kernel

bajeradai
Member
bajeradai

That means, to update the new kernel,just we need to run the command : rpm -ivh kernel.rpm right?

bajeradai
Member
bajeradai

Thank you.

mehboob
Member
mehboob

Hi,

Are there any questions in RHEL7 RHCSA exam about kernel tuning optimizing or troubleshooting.

Thanks.

Annamdi
Member
Annamdi

The truth about it is am still confused about this question when it tends to look simple. I have my Rhcsa exam on friday and still need clarification. when creating the repo for the kernel update. what do you add in the baseurl?

Sam
Member
Sam

Sounds like exam jitters to me. There are a few ways to install a program (ie a kernel).

1)From Source usually (untar, compile and configure)
2)From a Binary (untar, and install)
3)From a RPM source (downloadable)
4)From a YUM repository
see https://www.certdepot.net/rhel7-set-local-repository-lab/

Note: It is also possible to install a local kernel with yum as well as the above. As it is a Red Hat exam it is unlikely you will get 1) or 2) above.

yum localinstall kernel.rpm

Hope this helps and good luck with the exam.

navideh
Member
navideh

I do have my own repository ,I want to update my kernel. But when I want to update that ,gives me this error:
No packages marked for update.
some issues in my repo???
my current kernel is 3.10.0-327.18.2.el7
would you please help me?

phil_guy412
Member
phil_guy412

Is this another possible option to update the kernel while still keeping the old one?

1. yumdownloader kernel
2. yum install linux-firmware
3. rpm -ivh NEW_KERNEL.rpm

or

1. yum update kernel (Not sure if this keeps the old kernel)

And when you install a new kernel, does the new kernel automatically become the default boot kernel or do I need to run the grub2-set-default command?

navideh
Member
navideh

Actually I created my repo on my server and my client reach that repo through HTTP (does my client need to execute the createrepo cmd???)
But I think I do have not updated packages on my repo before that I share my client (Do I should get updated my package repo on repo and then share with client)?

navideh
Member
navideh

For the exam our local repo should have four parts that includes base, update, extras and centos plus? or having the base repo is enough to do everything that needs to do on the exam?

Lisenet
Member

During the exam you may get a single repo to use, and you are free to name it as you like. It does not matter how you call it, base, update, extras or whatever, the main thing is that the repo will contain all packages you may be asked to install.

Do not overthink it, exam questions are crystal clear.

navideh
Member
navideh

How can we update our old version of repository?
I ran “yum update” on my system and then create new repo, but still I couldn’t see the new version!!!!
Would you help me to fix my problem?

navideh
Member
navideh

Do we have to create the same repo in exam? because it will be difficult and take much time to do that!

samuel.sappa
Member
samuel.sappa

Hi Certdepot,
Since we’re troubleshooting the kernel in IMHO we doing this in level 1 or using boot able CD/DVD
How can we install kernel by running the rpm -ivh kernel.rpm while we in Level 1 or using CD/DVD bootable?
Thank you for your help

twostep
Member
twostep

To verify which kernel is current, you can use a grubby command:
grubby –default-kernel
grubby –default-index
ls -ltr /boot/vmlinuz*
grubby –info=/boot/vmlinuz-

jawad.nawaz@hotmail.com
Member
jawad.nawaz@hotmail.com

There was a Q in RHCSA exam ( forgot the full description). install the kernel from a repo (http), make sure this is the default kernel at boot up.
Would
yum install kernel *** will do the work or you need to put grub2 set-default as well.
Thanks

samuel.sappa
Member
samuel.sappa

Hi CertDepot,
When we install new kernel is it by default the one will using during boot or we must configure it manually

wpDiscuz

RHCSA7: Task of the day

Allowed time: 10 minutes.
Create two new user accounts "steve" and "oliver".
Create a group "team". Create a directory "shared".
All files put into the "shared" directory by "steve" or "oliver" should belong to the "team" group and be only visible by them.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a default secure MariaDB database called maria and create a table named people with two columns respectively name varchar(20) and age int(10) unsigned.

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...

Recent Comments