Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.