LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-01-2004, 07:19 AM   #1
pirozzi
Member
 
Registered: Sep 2003
Location: /naples/italy
Distribution: ubuntu 12.04 / Slackware 14
Posts: 150

Rep: Reputation: 15
applying kernel patch


i wont to updated my kernel to 2.6.9 so i downloaded the kernel-source package. i found also a patch for this kernel and i got it. and now? how can i install it?
 
Old 12-01-2004, 08:47 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Re: applying kernel patch

Quote:
Originally posted by pirozzi
i wont to updated my kernel to 2.6.9 so i downloaded the kernel-source package. i found also a patch for this kernel and i got it. and now? how can i install it?
I am assuming that you want to know how to apply the patch to the kernel, and that you have compiled kernels before. If you have never compiled a new kernel before, I would recommend that you learn that part out first, then start playing around with patches.

As for applying the patch, I am assuming that it is in diff format (you can tell by looking at the first line of the patch... if it starts with diff then it is.)

The command to apply the patch is, oddly enough, patch. Reading the manpage on this command is highly recommended.

In this case, the most likely way to apply whatever patch you happen to have is to go into the root of your kernel source directory (very often /usr/src/linux-2.6.9) and then doing the following:

Code:
patch -p0 <patchfile>
This should do the trick. To later remove the patch, you can do the following:

Code:
patch -p0 -R <patchfile>
in the same location. This is a very basic method of patching, and sometimes you have to futz with the -p0 switch, changing it to -p1 or -p2 sometimes.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying Kernel Patch browser Linux - Software 2 08-31-2005 07:18 AM
Applying a kernel patch.. RoaCh Of DisCor Linux - Software 2 05-07-2005 08:41 PM
Building a kernel RPM with applying a patch barisdemiray Programming 1 08-04-2004 07:50 AM
applying ck kernel patch Abe_the_Man Linux - General 1 01-29-2004 12:43 PM
kernel compilation; applying patch h/w Linux - Software 11 07-23-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration