Multiple Linux headers, can I just delete the old ones?
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.