LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-01-2003, 10:50 AM   #1
bongski55
Member
 
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, 06: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?
 
  


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
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 04: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 04:59 AM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 07:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 02:21 PM
Choose which one is the correct to patch the system? explorer1979 Linux - Security 1 03-07-2002 09:15 PM


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