LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 34
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?
 
Old 03-16-2005, 06:40 AM   #2
__J
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.
 
  


Reply


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 01:35 AM
Patch in newer kernel during install? epperson Fedora - Installation 2 01-19-2005 12:18 PM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to install preemptive kernel patch? sb73542 Linux - Software 6 08-30-2003 05:11 PM
install kernel patch niton Linux - Newbie 2 07-16-2002 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:32 PM.

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