LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to install a kernel patch? (https://www.linuxquestions.org/questions/linux-general-1/how-to-install-a-kernel-patch-302212/)

irfanhab 03-16-2005 04:49 AM

how to install a kernel patch?
 
Hi


How to I install a kernel patch, and do I have to re-compile the kernel after the patching?

__J 03-16-2005 06:40 AM

kernel patches are for the source tree. use the "patch" command to apply it to the kernel source. and yes, you have to recompile anytime you apply a patch ( for kernels, apps, etc...)

an example:

cd <some source directory> ( we'll assume the patch is uncompressed and in the source directory)
patch -Np1 -i < patch name >

the number after -Np does make a difference, most of the time it's either a 0 or a 1. if one fails ( if it ask you what file to patch, it failed), change the number.


All times are GMT -5. The time now is 01:38 AM.