Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-01-2003, 09:50 AM   #1
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
Question Correct Way Of Kernel Patch?

Although new to linux, I already have done 2 kernel upgrades.What I have not tried is kernel patching.
After serarching and reading some posts in this and other sites I found out that there are 2 different methods in patching a kernel. One is to start in /usr/src directory and another is to start in the kernel directory .
I want to know which is the right or most advantageous method.

Another question,since I have 2 kernel sources(2.4.20 and 2.4.21) in my /usr/src directory does the patch know which to patch?
Old 08-02-2003, 05:48 PM   #2
Zeratool Box
LQ Newbie
Registered: Mar 2003
Distribution: slackware
Posts: 19

Rep: Reputation: 0
This is what I do to patch my kernel.
If the patch is gziped I gunzip it with
gunzip patch-name.gz

Then I cd to the kernel source
cd /usr/src/linux
assuming linux is a link to the sorce I want to patch.
then I run
patch -Np1 -i <path to patch>/patch-name

Seems to always work for me so that's what I do. I'm sure there are several other ways of doing this too, It's just that we need other people to actually post a different way so we can all learn something, after all that's what we are here for is to teach/learn isn't it?


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
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
Unable to patch kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
Choose which one is the correct to patch the system? explorer1979 Linux - Security 1 03-07-2002 08:15 PM > Forums > Linux Forums > Linux - Distributions > Slackware

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