title: Installing Patches in linux
body: <p>I have a patch file that I want to install in linux. I know there is a patch command, And I tried to use it like this:</p>
  
  <pre><code>patch -i file --verbose
  </code></pre>
  
  <p>where file is the patch file. But it asks me for the file to be patched(to be changed):</p>
  
  <pre><code>Hmm...  Looks like a unified diff to me...
  can't find file to patch at input line 17
  Perhaps you should have used the -p or --strip option?
  The text leading up to this was:
  --------------------------
  |From 13fac179aa50556ba3c60790a9beb6ca9d0b1b8b Mon Sep 17 00:00:00 2001
  |From: Andrey Vagin &lt;avagin@openvz.org&gt;
  |Date: Fri, 28 Jan 2011 23:31:20 +0300
  |Subject: [PATCH rh5] vdso: export vdso_sysctl_vsyscall
  |
  |Signed-off-by: Andrey Vagin &lt;avagin@openvz.org&gt;
  |---
  | arch/x86_64/vdso/vclock_gettime.c |    4 ++--
  | arch/x86_64/vdso/vextern.h        |    1 +
  | include/asm-x86_64/vsyscall.h     |    1 +
  | 3 files changed, 4 insertions(+), 2 deletions(-)
  |
  |diff --git a/arch/x86_64/vdso/vclock_gettime.c b/arch/x86_64/vdso/vclock_gettime.c
  |index 5e15d01..3e586bf 100644
  |--- a/arch/x86_64/vdso/vclock_gettime.c
  |+++ b/arch/x86_64/vdso/vclock_gettime.c
  --------------------------
  File to patch: 
  </code></pre>
  
  <p>I don't know what file should be changed so I tried to get that from the patch file itself. But of course there is no directory <code>arch/x86_64/vdso/</code></p>
  
  <p>This is the full <a href="https://bugzilla.redhat.com/attachment.cgi?id=475892" rel="nofollow">patch file</a>. Any help on how to install it?</p>