Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 03-16-2005, 05:49 AM   #1
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
how to install a kernel patch?


How to I install a kernel patch, and do I have to re-compile the kernel after the patching?
Old 03-16-2005, 07:40 AM   #2
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel, patch, optimize, buid, install Hexane Mandriva 3 01-27-2005 02:35 AM
Patch in newer kernel during install? epperson Fedora - Installation 2 01-19-2005 01:18 PM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 02:21 PM
How to install preemptive kernel patch? sb73542 Linux - Software 6 08-30-2003 06:11 PM
install kernel patch niton Linux - Newbie 2 07-16-2002 10:51 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration