LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 02-11-2009, 04:51 PM   #1
Pantherman
Member
 
Registered: Apr 2003
Posts: 42
Thanked: 0
Multiple Linux headers, can I just delete the old ones?


[Log in to get rid of this advertisement]
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
Pantherman is offline  
Tag This Post ,
Reply With Quote
Old 02-11-2009, 05:07 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: atop the Blue Ridge
Distribution: Debian Lenny, CentOS 5.2
Posts: 7,250
Thanked: 31
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
jailbait is offline     Reply With Quote
Old 02-11-2009, 05:53 PM   #3
Pantherman
Member
 
Registered: Apr 2003
Posts: 42
Thanked: 0

Original Poster
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
Pantherman is offline     Reply With Quote
Old 02-11-2009, 06:19 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: atop the Blue Ridge
Distribution: Debian Lenny, CentOS 5.2
Posts: 7,250
Thanked: 31
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
jailbait is offline     Reply With Quote
Old 02-11-2009, 07:27 PM   #5
Pantherman
Member
 
Registered: Apr 2003
Posts: 42
Thanked: 0

Original Poster
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
Pantherman is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Delete multiple hidden files Beresford Linux - General 3 06-27-2008 10:44 AM
How do I printout multiple stdout and headers HyperTrey Programming 5 06-09-2008 07:43 PM
Delete Multiple Column Headers rduncan10 Programming 3 08-21-2007 02:24 PM
Delete a single E-mail / multiple mbox files mgichoga Debian 0 02-18-2007 09:42 PM
delete multiple files ashley75 Linux - General 1 05-02-2006 02:32 PM


All times are GMT -5. The time now is 08:23 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration