LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   What is the advantage of compiling from source versus dowloading image? (http://www.linuxquestions.org/questions/linux-kernel-70/what-is-the-advantage-of-compiling-from-source-versus-dowloading-image-484416/)

sleekmason 09-17-2006 03:08 PM

What is the advantage of compiling from source versus dowloading image?
 
Howdy All. I just compiled 2.6.17 onto my computer rather than downloading kernel image 2.6.17-6(or whatever number was available). I did this because I wanted to know how, and have succeeded in getting rid of a bunch of excess crap in xconfig and feel pretty good about that, but what is the difference as far as the source image itself and the extra # image? Is it better to just download the image directly rather than the source? or the other way around, and why?

XavierP 09-17-2006 03:11 PM

Well, really you have answered your own question. By compiling from source, you get a kernel that is particular to your pc - with nothing in there that you don't need.

OTOH, an image kernel tends to have lots in it and should generally work on everything.

sleekmason 09-17-2006 03:17 PM

Thanks for the info! It was amazing how simple it was once I found the right guide.

bchaynes3 09-17-2006 07:35 PM

Where was the guide? Please post.

sleekmason 09-18-2006 10:33 PM

Sure! There were actually three posts. The main one for me was: http://www.linuxquestions.org/questi...13#post1552913
The second was: http://www.linuxquestions.org/questi...ches+to+2.6.17

The third was:
http://www.digitalhermit.com/linux/K...ild-HOWTO.html

When following the first post, take note of what xushi said. It will save you some trouble. Also make sure you have all the required items installed to make this work. Let me know how it goes.
The only trouble I have had was with getting iptables to function properly, but I think it was because I modified xconfig too much. Also, I am running Sid on what used to be Mepis, but I doubt it can be called that anymore:) (now Debian).
Please note that I frequently have screwed up and had to start completly over with a bunch of stuff in Linux, and out of 5 distros tried, so far Debian seems to be indestructable.

jayjwa 09-19-2006 10:44 AM

Quote:

Originally Posted by sleekmason
The only trouble I have had was with getting iptables to function properly, but I think it was because I modified xconfig too much.

Recompiling iptables against the new source should fix that. Also the kernel sources changed radically with recent kernels from the old Netfilter/iptables code (x_tables, obsoletion of many extensions). Iptables source for new-new kernels is in the iptables/snapshot dir of ftp.netfilter.org.


All times are GMT -5. The time now is 07:10 AM.