Home

Awesome

Build Status

patch

Maintainers

Type of Package

Binary package

Use as Dependency

Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.

To add core/patch as a dependency, you can add one of the following to your plan file.

Buildtime Dependency

pkg_build_deps=(core/patch)

Runtime dependency

pkg_deps=(core/patch)

Use as Tool

Installation

To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.

hab pkg install core/patch --binlink

will add the following binary to the PATH:

For example:

$ hab pkg install core/patch --binlink
» Installing core/patch
☁ Determining latest version of core/patch in the 'stable' channel
☛ Verifying core/patch/2.7.6/20200306002655
→ Using core/attr/2.4.48/20200305230504
→ Using core/glibc/2.29/20200305172459
→ Using core/linux-headers/4.19.62/20200305172241
✓ Installed core/patch/2.7.6/20200306002655
★ Install of core/patch/2.7.6/20200306002655 complete with 1 new packages installed.
» Binlinking patch from core/patch/2.7.6/20200306002655 into /bin
★ Binlinked patch from core/patch/2.7.6/20200306002655 to /bin/patch

Using an example binary

You can now use the binary as normal. For example:

/bin/patch --help or patch --help

patch --help
Usage: patch [OPTION]... [ORIGFILE [PATCHFILE]]

Input options:

  -p NUM  --strip=NUM  Strip NUM leading components from file names.
  -F LINES  --fuzz LINES  Set the fuzz factor to LINES for inexact matching.
  -l  --ignore-whitespace  Ignore white space changes between patch and input.
...
...