- The Core Planners: chef-core-planners@chef.io
Binary package
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.
pkg_build_deps=(core/patch)
pkg_deps=(core/patch)
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:
- /bin/patch
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
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.
...
...