Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i need to apply patch .diff file to kenerl how to apply it which command should i use after i save the patch on patch.diff file ps patch is

share|improve this question
What's wrong with just updating the kernel package? – Ignacio Vazquez-Abrams Oct 30 '10 at 8:02
ive no problem with this i just wanted to learn how to apply such patch .diff files :) – user47556 Oct 30 '10 at 8:05
up vote 2 down vote accepted

You can use the patch tool. The general syntax is as follows:

patch -pnum <patchfile

For more info see:

man patch
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.