Community Documentation

UnxUtils

Last updated April 27, 2007. Created by Heine on April 24, 2006.
Log in to edit this page.

UnxUtils is a collection of GNU utilities for Win32, including patch. Download UnxUtils.zip then extract to a suitable folder. Add the folder [folder]\usr\local\wbin\ to your Windows PATH variable (or invoke patch using [folder]\usr\local\wbin\patch).

You can then invoke patch on the command line (via Start » Run, cmd)

HOWTO: Apply patches contains information on the command line syntax.

Note: patch on Windows requires CRLF line-endings; see also Common problems.

Comments

UnxUtils and patch

To get it to work you may need to invoke patch in one of the following ways:

  • full pathname - [folder]\usr\local\wbin\patch (i.e. typically \unxutils\usr\local\wbin\patch)
  • rename patch.exe to something like patch1.exe and invoke it via the command "patch1" instead of plain "patch"

Although the \unxutils\usr\local\wbin\ folder is in my PATH, patch appears to do nothing unless invoked by one of these methods. This is because there is another patch.exe in C:\WINDOWS. It appears to have been left there by a Trend Micro AV scanner (probably their "online" scan). I get the feeling I'm not alone with this problem http://sourceforge.net/tracker/index.php?func=detail&aid=1239280&group_i....

This is not really a UnxUtils problem to be fair and could arise with other packages that include patch.exe.

Other problems I've had with UnxUtils, for the record:
- the z option does not work in tar
- grep -r does not find all occurrences of search string (not sure if this is a problem specifically with the -r option or with grep generally for larger files)

Time to try Cygwin methinks!

gpk
----
www.alexoria.co.uk

Archive

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here