LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-20-2009, 05:14 AM   #1
gauravholey
Member
 
Registered: May 2009
Posts: 35

Rep: Reputation: 15
How to remove KDB patch?


hi there,

its been ages now that i have posted a query..i just wants to know how to remove the already installed KDB patch? is there any command?

The second basic doubt is what is difference between i386 and x86 arch as i have to reinstalled the KDB, previously i tried downloading patches for x86 but it wont work.my system got hang.

Seeking your valuable guidance always.


Best Regards,
gaurav holey

Last edited by gauravholey; 09-20-2009 at 05:22 AM.
 
Old 09-20-2009, 10:16 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi Guarev,

If you have the patch file which was used to apply the patch, you can simply un-patch the code using the `patch` command. It will reverse the patch.

As for the x86 issue: i386 is the (usually the) earliest compatibility level you will find for x86 architectures. As CPUs got more advanced, they moved to i486, i586, i686, etc.. A 386-level computer will not necessarily run code that is compiled specifically for > a 386 processor. Essentially, it is backwards compatible, but not forward compatible.

Try Googling for something like "Intel x86 architecture" and you should quickly locate a good Wikipedia article that explains the x86 architecture.

Good luck!

Sasha
 
Old 09-21-2009, 01:04 PM   #3
gauravholey
Member
 
Registered: May 2009
Posts: 35

Original Poster
Rep: Reputation: 15
any examples how to use that 'patch' command....to unpatch d kernel..

Gaurav Holey
 
Old 09-22-2009, 12:34 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Well, lets say you patched the kernel, with a patch-file named "hello", like so:

shell# patch -p1 -i hello

Then, to reverse that patch, either do the same command again and answer the question it asks you when it detects that the patch was already applied, or try using the -R option, which means "reverse", like so:

shell# patch -p1 -R -i hello

Check out the man page for patch:

shell$ man patch

Sasha
 
  


Reply



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
kdb patch Misbah Naveed Linux - Enterprise 1 01-25-2008 08:21 AM
kdb patch for 2.6.22: error maitrebart Linux - Kernel 0 09-10-2007 04:39 PM
KDB patch for 2.6.9 cybersrin Linux - Software 1 08-03-2007 05:56 AM
kdb patch for linux-2.4-31 prabhakar_kushwaha Linux - Kernel 0 01-11-2007 05:58 AM
Reg. kdb patch blpriya12 Linux - Software 0 04-28-2005 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:05 AM.

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