LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-11-2009, 03:51 PM   #1
Pantherman
Member
 
Registered: Apr 2003
Posts: 49

Rep: Reputation: 15
Multiple Linux headers, can I just delete the old ones?


I updated again today and noticed that I have 3 different versions of header files in my SRC directory:

Linux-headers-2.6.27-7
Linux-headers-2.6.27-7-generic

Linux-headers-2.6.27-9
Linux-headers-2.6.27-9-generic

Linux-headers-2.6.27-11
Linux-headers-2.6.27-11-generic

Can I just delete the Linux-headers-2.6.27-7 and Linux-headers-2.6.27-9 without corrupting or breaking anything?

Pantherman
 
Old 02-11-2009, 04:07 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,472

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by Pantherman View Post
Can I just delete the Linux-headers-2.6.27-7 and Linux-headers-2.6.27-9 without corrupting or breaking anything?
Yes. However if you are using a package manager you can end up with the package manager data base being out of synch with what is actually installed. I suggest that you go into your package manager and delete every Linux-header package except the one that corresponds to the kernel you are currently using. You can find out what kernel you are currently using with the uname command:

uname -r

If you have old kernel headers then you may also have old kernels. Check your kernel packages for unneeded kernels.

If you want more detail then tell us what distribution and what package manager you are using.

---------------------
Steve Stites
 
Old 02-11-2009, 04:53 PM   #3
Pantherman
Member
 
Registered: Apr 2003
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jailbait View Post
Yes. However if you are using a package manager you can end up with the package manager data base being out of synch with what is actually installed. I suggest that you go into your package manager and delete every Linux-header package except the one that corresponds to the kernel you are currently using. You can find out what kernel you are currently using with the uname command:

uname -r

If you have old kernel headers then you may also have old kernels. Check your kernel packages for unneeded kernels.

If you want more detail then tell us what distribution and what package manager you are using.

---------------------
Steve Stites

Yes, much more detail would be appericated as I don't want to "break" anything in the system.....again.


uname -r returns: 2.6.27-11-generic as the kernel that I'm running, would I still need Linux-headers-2.6.27-11 then?

I am running Ubuntu 8.10 with a graphical add/remove program that was installed as part of the system, I assume that it's a graphical front-end for the Synaptic Package Manager.

Thanks in advance.

Pantherman
 
Old 02-11-2009, 05:19 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,472

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by Pantherman View Post

uname -r returns: 2.6.27-11-generic as the kernel that I'm running, would I still need Linux-headers-2.6.27-11 then?
Yes.

Quote:
Originally Posted by Pantherman View Post

I am running Ubuntu 8.10 with a graphical add/remove program that was installed as part of the system, I assume that it's a graphical front-end for the Synaptic Package Manager.
OK. You can use Synaptic to search for different package types. Click on "Search" and type in what you are searching for. On Debian the package is called linux-kernel-headers so a search on linux-kernel produces the desired result. On Ubuntu you can probably search on similar keywords. If you are not sure what a package is click on the package name, then click on "properties", then click on "description" to get an explanation of what the package is.

Once you get the list you can tick on the green box beside each package you want to delete and click on "Mark for removal". When you have ticked everything you want then click on "Apply". A pop-up window will appear and you click on "Apply" again.

--------------------
Steve Stites
 
Old 02-11-2009, 06:27 PM   #5
Pantherman
Member
 
Registered: Apr 2003
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jailbait View Post
Yes.



OK. You can use Synaptic to search for different package types. Click on "Search" and type in what you are searching for. On Debian the package is called linux-kernel-headers so a search on linux-kernel produces the desired result. On Ubuntu you can probably search on similar keywords. If you are not sure what a package is click on the package name, then click on "properties", then click on "description" to get an explanation of what the package is.

Once you get the list you can tick on the green box beside each package you want to delete and click on "Mark for removal". When you have ticked everything you want then click on "Apply". A pop-up window will appear and you click on "Apply" again.

--------------------
Steve Stites

THanks, that worked.

Pantherman
 
  


Reply

Tags
delete


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete multiple hidden files Beresford Linux - General 3 06-27-2008 09:44 AM
How do I printout multiple stdout and headers HyperTrey Programming 5 06-09-2008 06:43 PM
Delete Multiple Column Headers rduncan10 Programming 3 08-21-2007 01:24 PM
Delete a single E-mail / multiple mbox files mgichoga Debian 0 02-18-2007 08:42 PM
delete multiple files ashley75 Linux - General 1 05-02-2006 01:32 PM


All times are GMT -5. The time now is 03:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration