LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-28-2017, 11:17 PM   #1
karthickkm19
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Rep: Reputation: Disabled
Looking for 4.9.72 kernel rpm file


Hi All,

I'm looking for rpm file or any other source of kernel 4.9.72 version to centos 7 anyone please help on this or guide me to install the above version in centos 7.
 
Old 12-29-2017, 04:42 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
If you can't find a ready-made rpm by googling, you could try downloading the source from kernel.org, use make menuconfig to configure it the way you want it, then make binrpm-pkg. If you're happy with the way your current kernel is configured, you could just copy the config file in boot into your top-level source directory as .config and omit the personalised configuration step.

I must admit, I've never packaged up a kernel that I built myself so I don't know if it creates any problems. I always just install them directly from the build.
 
Old 12-29-2017, 04:48 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
bigger picture: WHY do you think you need that specific kernel version?
http://xyproblem.info/
 
Old 12-29-2017, 05:20 AM   #4
karthickkm19
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
If you can't find a ready-made rpm by googling, you could try downloading the source from kernel.org, use make menuconfig to configure it the way you want it, then make binrpm-pkg. If you're happy with the way your current kernel is configured, you could just copy the config file in boot into your top-level source directory as .config and omit the personalised configuration step.

I must admit, I've never packaged up a kernel that I built myself so I don't know if it creates any problems. I always just install them directly from the build.
Hi Hazel,

When I try to install the kernel using source it asks for .config file I don't know how to find that file. Can you suggest any ideas?
 
Old 12-29-2017, 05:31 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by karthickkm19 View Post
Hi Hazel,

When I try to install the kernel using source it asks for .config file I don't know how to find that file. Can you suggest any ideas?
You have two options:
1) use the command make defconfig to get a default configuration file with sensible options
2) Copy over /boot/config-x.y.z as .config.

In either case you can then customise it with make menuconfig.

But Ondoho has a valid point: why do you need just this particular kernel? There is a thing called the x-y problem, where someone asks "How do I do x?" when he really wants to do y but thinks he has to do x to get there. Which may not actually be necessary at all.
 
Old 12-29-2017, 08:48 AM   #6
karthickkm19
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
You have two options:
1) use the command make defconfig to get a default configuration file with sensible options
2) Copy over /boot/config-x.y.z as .config.

In either case you can then customise it with make menuconfig.

But Ondoho has a valid point: why do you need just this particular kernel? There is a thing called the x-y problem, where someone asks "How do I do x?" when he really wants to do y but thinks he has to do x to get there. Which may not actually be necessary at all.
The new kernel version was not shown after completing the installation. Can give me the exact installation procedure for installing the kernel using the source package. So that I can verify my installation steps.
 
Old 12-29-2017, 09:08 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
To install a kernel by hand involves two main steps, which must be carried out as root:

1) Find the new compressed kernel in arch/x86/boot/. It will be called bzImage. Copy it into /boot under a suitable name such as vmlinuz-4.9.72.
2) Use make modules_install to install the new kernel's modules in /lib/modules/4.9.72.

It's usual to copy your .config to /boot/config-4.9.72 and system.map to /boot/system.map-4.9.72 for safekeeping.

Then update GRUB to include the new kernel. Hopefully the GRUB scripts will detect it correctly.

Last edited by hazel; 12-29-2017 at 09:10 AM.
 
Old 12-29-2017, 09:44 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by karthickkm19 View Post
The new kernel version was not shown after completing the installation. Can give me the exact installation procedure for installing the kernel using the source package. So that I can verify my installation steps.
As you were asked before, and it's still the most important question: WHY DO YOU WANT THIS KERNEL?????

Compiling from source isn't that difficult, and there are lots of how-tos you can find with a Google search (if you tried to look), like this one, from the CentOS website:
https://wiki.centos.org/HowTos/Custom_Kernel

Even they tell you that this isn't a good idea/needed from most folks. You ignored ondoho when he asked, but the question remains valid. What feature(s) are you absolutely NEEDING that kernel for? Are you then also prepared to compile your kernel modules and other items, that may (or may not) get done for you? If you are unable to look up a how-to guide, find the source, download it, and read the documentation, then perhaps compiling your own kernel isn't a good idea.
 
Old 12-29-2017, 10:55 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
I'm curious too to know why he thinks he needs this precise kernel. If he simply wanted to rebuild his stock kernel as a morale-building exercise, that would be a different matter.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat kernel src rpm install how to - kernel-2.6.18-128.2.1.5.15.el5.src.rpm iced lemon Red Hat 3 12-09-2014 02:54 PM
kernel-source.x.x.x.x.rpm vs. kernel.x.x.x.src.rpm mrkozmic Linux - Newbie 2 08-03-2010 10:59 AM
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 07:46 PM
How to create file "kernel-source-version.rpm xinix Linux - Software 2 09-10-2005 01:45 AM
making kernel RPM. does not make initrd file mindcry Linux - Software 5 08-12-2004 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration