LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Multiple Linux headers, can I just delete the old ones? (https://www.linuxquestions.org/questions/linux-general-1/multiple-linux-headers-can-i-just-delete-the-old-ones-703976/)

Pantherman 02-11-2009 03:51 PM

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

jailbait 02-11-2009 04:07 PM

Quote:

Originally Posted by Pantherman (Post 3440182)
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

Pantherman 02-11-2009 04:53 PM

Quote:

Originally Posted by jailbait (Post 3440195)
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

jailbait 02-11-2009 05:19 PM

Quote:

Originally Posted by Pantherman (Post 3440235)

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 (Post 3440235)

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

Pantherman 02-11-2009 06:27 PM

Quote:

Originally Posted by jailbait (Post 3440263)
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


All times are GMT -5. The time now is 10:49 PM.