Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hello
I just installed a my own kernel I compiled from kernel.org
But now in man page I see this command
Code:
make-kpkg kernel_source
I run this command and it created me a linux-sources.deb file and several folders in /home/miros/miskernels/linux-2.6.32.5/debian/linux-source-2.6.32.5
Did I need to run this command? And what is this file for? (linux-sources.deb)
I need to install it?
It is the recommended way to compile and install kernels on a debian system. This way you can easily upgrade, install and/or remove kernels just like you would any other package.
Sorry, I totally missed the point of your original post. As you found out that option makes a kernel source deb. Could be handy if you'd patched something and wanted to recompile the kernel again, or wanted to share it etc.
Wait, wait, wait...
you just told me something I was asking for a long time.
I need to install nvidia kernel that requires linux-headers.
So, you mean, that if I keep folder with sources, is the same as install linux-headers?
Boths things are OK to intall nvidia driver or other moduls against the kernel?
Wait, wait, wait...
you just told me something I was asking for a long time.
Glad to help! Just hit the little Thanks button, if you don't mind.
Quote:
I need to install nvidia kernel that requires linux-headers.
So, you mean, that if I keep folder with sources, is the same as install linux-headers?
Boths things are OK to intall nvidia driver or other moduls against the kernel?
Yep. As far as outside drivers are concerned, they're the same. When the nvidia driver compiles, it only needs access to the kernel headers, not the actual kernel source. It doesn't matter whether they're in the source tree or in a separate kernel headers tree. If you look at /lib/modules/`uname -r` (for the running kernel) you can see the links.
I had pressed thank you
So, if I install linux-headers, then I can delete the folder with sources that I extracted from kernel.org.
And later, if I want to install some driver against the kernel, I will can do it. No need source folder anymore.
That is what I understand.
My understanding is that if you want to remove your source tree, then you should make and install the kernel_headers for the kernel you're installing. I haven't done this because I keep my source trees, so I don't know whether it creates a separate deb or how it works.
Added:
OK, so I just did a compilation of an old kernel with the kernel_headers option, and you are right, there is a linux-headers deb created. So, that could be installed along with the new kernel and the kernel source tree could be removed.
Last edited by Quakeboy02; 02-03-2010 at 04:16 PM.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
I would keep the source tree, and use: make-kpkg --revision=<at least one number and one letter> --initrd kernel_image. Then install the resulting: /usr/src/linux-image-<version>-<revision>.deb file, using dpkg -i /usr/src/linux-image-<version>-<revision>.deb.
But linux sources and Linux-header is the same thing?
No, the source contains everything you need to actually compile the kernel. The headers just give modules the information they need to compile against the kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.