LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-25-2015, 10:47 PM   #1
nycbrit
LQ Newbie
 
Registered: Nov 2013
Posts: 14

Rep: Reputation: Disabled
Question Why are kernel-headers not upgraded?


Why does Fedora upgrade kernel-headers within the same major release version, but RHEL does not?
 
Old 08-26-2015, 01:16 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The package 'kernel-headers' is updated, whenever changes appear :

'kernel-headers' versions, example RHEL5, 2.6.18 :
-194, -238, -274, -308, -348, -371, -386, -398, -400, -402,
and -404 : '03 June 2015'.

RHEL6, 2.6.32 :
-131.015, -504.1.3, -504.3.3, -504.8.1, -504.12.2, -504.16.2, 573.1.1,
and -573.3.1 : '14 Aug 2015'.

RHEL7, 3.10.0 : -229.1.2, -229.4.2, -229.7.2, and 229.11.1 : '08 Aug 2015'.


-
 
1 members found this post helpful.
Old 08-26-2015, 08:59 AM   #3
nycbrit
LQ Newbie
 
Registered: Nov 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Oh, I see. Our sysadmins must upgrade our kernel manually, we're on a newer version.

If you did upgrade the kernel manually on RHEL, would you consider it good practice to upgrade the installed kernel headers also?
 
Old 08-26-2015, 11:13 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
we're on a newer version.
For your information : The 'kernel-headers' package, /usr/include/{ asm/*, drm/*, linux/* etc.}
... is used only for compiling applications.
And : These ~665 headers are the headers that were used to compile your glibc.
So they must follow the default glibc version.
I.e. no alien update of the package 'kernel-headers' should be done !

-

Last edited by knudfl; 08-26-2015 at 11:25 AM.
 
1 members found this post helpful.
Old 08-26-2015, 11:42 AM   #5
nycbrit
LQ Newbie
 
Registered: Nov 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
My current development machine is Rhel 5.11, kernel 3.10

I'm a developer, my end goal is building software and helping other devs to build software. We have a variety of rhel 5&6 machines with various kernels. Our sysadmins update the kernel, but never update the kernel headers. I am trying to understand why, as it impedes me using newer kernel features. They're not forthcoming with reasons, just saying that redhat doesn't update the headers.

I guess one reason may be that they are trying to prevent binaries for an OS depending on a newer kernel than the lowest common denominator.

My question is effectively this : if you manually update a kernel for RHEL, what other packages should you update, as best practise?
 
Old 08-26-2015, 02:31 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #5.
Quote:
... redhat doesn't update the headers.
Yes they do. Constantly. Read post #2.


See #4 : The 'kernel headers' are the headers that were used to compile your glibc.
ftp://ftp.redhat.com/redhat/linux/en...r/en/os/SRPMS/
Please see the ~33 versions / updates of glibc.


-
 
Old 08-26-2015, 02:56 PM   #7
nycbrit
LQ Newbie
 
Registered: Nov 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Ok thanks for the clarification, our sys admins are being imprecise.

Regarding my other question :
> if you manually update a kernel for RHEL, what other packages should you update, as best practise?

Is the answer just kernel-headers and glibc?
 
Old 08-26-2015, 05:26 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #7.
Quote:
if you manually update a kernel for RHEL,
what other packages should you update
None. There aren't any packages related to the kernel.

But : If you exclude "kernel*" in /etc/yum.conf,
then you will have no updates of the glibc related package 'kernel-headers'(-2.6.xx-xxx)
Must then be manually handled. E.g. by temporarily disabling the line exclude=kernel*


Generally about updates :
Just do # yum update ,,, whenever there are (other) updates.

-
 
  


Reply

Tags
kernel



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
Accidentally upgraded kernel-headers, should I downgrade? piratesmack Slackware 13 05-24-2011 02:15 PM
[9.10] Kernel upgraded, but won't install headers? littlebigman Ubuntu 3 08-24-2010 06:50 AM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 11:12 AM
Upgraded Kernel, Kernel Panic, Can't read root file system. Romanus81 Slackware 25 05-04-2008 10:45 PM
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:19 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