Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

How do I upgrade the patch utility?

I am facing problems when I apply patch as follows.

patch -p6 < ../kernelpatchXXXX

New directories and files are getting created instead of modifying the existing files.

The patch version I use is as follows.

:~$ patch -v  
patch 2.6  
Copyright (C) 1988 Larry Wall  
Copyright (C) 2003 Free Software Foundation, Inc.  

This program comes with NO WARRANTY, to the extent permitted by law.  
You may redistribute copies of this program  
under the terms of the GNU General Public License.  
For more information about these matters, see the file named COPYING.  

written by Larry Wall and Paul Eggert  

I checked the Patch's GNU site and found there is a stable release version 2.7

Can someone help me upgrade?

share|improve this question
Thinks like that usually arn't updated that often for a reason - might help to try to work out why the current version isn't working - what command are you using specfically, and with what files/patches? – Journeyman Geek Sep 3 '13 at 4:55
I am trying to patch files which are related to a project's workspace. The same patches are being applied correctly in other location where the patch version is 2.5.9 – New to Rails Sep 3 '13 at 5:18
wrong -p option? – kofemann Sep 3 '13 at 6:58
Are you applying it in the same directory? – reinierpost Sep 3 '13 at 7:08
There is some difference in patch 2.5.9 and 2.6. I used WindRiver's patch utility and it worked correctly. – New to Rails Sep 3 '13 at 12:41

You must log in to answer this question.

Browse other questions tagged .