LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2014, 11:48 PM   #1
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Rep: Reputation: Disabled
what happen if i delete all kernel headers?


As i know kernel headers are used only when i compile kernel or kernel modules so if i dont need to compile kernel-related things is there no need to have any kernel headers?
 
Old 08-27-2014, 12:10 AM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
By typing "function of linux kernel headers" into a search engine, the first hit included this quote without having to open the link.
Quote:
A kernel header is a summation of a kernel's instructions that an application can refer to in order to create kernel modules. Without access to the kernel header, many programs cannot function properly on your Linux machine.
So my guess is removing them would be a bad idea.

Last edited by Randicus Draco Albus; 08-27-2014 at 12:11 AM.
 
Old 08-27-2014, 01:55 AM   #3
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
None of my machines (Debian) have ever had the kernel headers package installed. When I was using Ubuntu I can only remember seeing it installed on Ubuntu 7.04 (Feisty Fawn). I don't know if my Slackware install has them or not.
 
Old 08-27-2014, 02:27 AM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,248

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Slackware is a perfect developer machine and therefore it installs of course the kernel header
 
Old 08-27-2014, 02:46 AM   #5
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by a4z View Post
Slackware is a perfect developer machine and therefore it installs of course the kernel header
I'd try to verify that but my perfect developer machine using Slackware wont even boot right now due to a kernel panic! Moral to this is nothing is perfect.
 
Old 08-27-2014, 05:15 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
yes, usually you do not need them (just in the case you want to build a new kernel module), but actually for example installing an ati driver requires kernel headers, so probably you may want to install later something which uses....
 
Old 08-27-2014, 04:24 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I'd suspect anytime you run dkms it will fail. You may not compile a kernel yourself but you may have something like virtualbox installed that needs to update the kernel.
 
Old 08-27-2014, 05:03 PM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Yeah, you don't *need* the headers, unless you need to compile something (that requires said headers)

Jefro gives a perfect example of when you would need them.


since they don't really take up much space, might as well have them.

If you have an embedded system, space may be tight, but you probably cross-compile so bo need for the headers


Humans can read headers to
Useful reference
 
Old 08-27-2014, 07:05 PM   #9
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Thanks I see
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[kernel-headers-3.2.45-x86-3] OR [kernel-headers-3.2.45_smp-x86-3]? Sefid par Slackware 3 07-24-2013 10:59 AM
What the hell did happen to linux kernel 2.6.9-5.EL ? Rossonero224 Linux - Security 1 03-15-2010 02:53 AM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 12:12 PM
Multiple Linux headers, can I just delete the old ones? Pantherman Linux - General 4 02-11-2009 07:27 PM
Delete Multiple Column Headers rduncan10 Programming 3 08-21-2007 02:24 PM


All times are GMT -5. The time now is 10:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration