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:

# yum install kernel.rpm

or

# 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 votes, average: 5.00 out of 5)
Loading...

Leave a Reply

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

Sort by:   newest | oldest
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.

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.

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?

Member
arclight

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

Member
arclight

Much appreciated, thanks

Member
bajeradai

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

Member
bajeradai

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

Member
bajeradai

Thank you.

Member
mehboob

Hi,

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

Thanks.

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?

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://sdm.mit.edu/?id=certdepot-EX200&exam=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.

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?

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?

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)?

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?

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.

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?

Member
navideh

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

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

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-

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

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

Upcoming Events (CET)

There are no events.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Set up time services pointing to default time servers.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a default secure MariaDB database called maria and back up the database with mysqldump.

Poll for favorite RHEL 7 book

 Loading ...

Poll for most difficult RHCSA 7 topic

 Loading ...

Poll for most difficult RHCE 7 topic

 Loading ...
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
https://sdm.mit.edu/    | https://sdm.mit.edu/    |