|
| 1 | +[](https://dev.azure.com/chefcorp-partnerengineering/Chef%20Base%20Plans/_build/latest?definitionId=132&branchName=master) |
| 2 | + |
| 3 | +# procps-ng |
| 4 | + |
| 5 | +procps is the package that has a bunch of small useful utilities that give information about processes using the /proc filesystem. The package includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill. See [documentation](https://gitlab.com/procps-ng/procps) |
| 6 | + |
| 7 | +## Maintainers |
| 8 | + |
| 9 | +* The Core Planners: <[email protected]> |
| 10 | + |
| 11 | +## Type of Package |
| 12 | + |
| 13 | +Binary package |
| 14 | + |
| 15 | +### Use as Dependency |
| 16 | + |
| 17 | +Binary packages can be set as runtime or build time dependencies. See [Defining your dependencies](https://www.habitat.sh/docs/developing-packages/developing-packages/#sts=Define%20Your%20Dependencies) for more information. |
| 18 | + |
| 19 | +To add core/procps-ng as a dependency, you can add one of the following to your plan file. |
| 20 | + |
| 21 | +##### Buildtime Dependency |
| 22 | + |
| 23 | +> pkg_build_deps=(core/procps-ng) |
| 24 | +
|
| 25 | +##### Runtime dependency |
| 26 | + |
| 27 | +> pkg_deps=(core/procps-ng) |
| 28 | +
|
| 29 | +### Use as Tool |
| 30 | + |
| 31 | +#### Installation |
| 32 | + |
| 33 | +To install this plan, you should run the following commands to first install, and then link the binaries this plan creates. |
| 34 | + |
| 35 | +``hab pkg install core/procps-ng --binlink`` |
| 36 | + |
| 37 | +will add the following binaries to the PATH: |
| 38 | + |
| 39 | +* /bin/free |
| 40 | +* /bin/pgrep |
| 41 | +* /bin/pidof |
| 42 | +* /bin/pkill |
| 43 | +* /bin/pmap |
| 44 | +* /bin/ps |
| 45 | +* /bin/pwdx |
| 46 | +* /bin/slabtop |
| 47 | +* /bin/sysctl |
| 48 | +* /bin/tload |
| 49 | +* /bin/top |
| 50 | +* /bin/uptime |
| 51 | +* /bin/vmstat |
| 52 | +* /bin/w |
| 53 | +* /bin/watch |
| 54 | + |
| 55 | +For example: |
| 56 | + |
| 57 | +```bash |
| 58 | +$ hab pkg install core/procps-ng --binlink |
| 59 | +» Installing core/procps-ng |
| 60 | +☁ Determining latest version of core/procps-ng in the 'stable' channel |
| 61 | +→ Found newer installed version (core/procps-ng/3.3.15/20200702121715) than remote version (core/procps-ng/3.3.15/20200305231457) |
| 62 | +→ Using core/procps-ng/3.3.15/20200702121715 |
| 63 | +★ Install of core/procps-ng/3.3.15/20200702121715 complete with 0 new packages installed. |
| 64 | +» Binlinking pwdx from core/procps-ng/3.3.15/20200702121715 into /bin |
| 65 | +★ Binlinked pwdx from core/procps-ng/3.3.15/20200702121715 to /bin/pwdx |
| 66 | +» Binlinking watch from core/procps-ng/3.3.15/20200702121715 into /bin |
| 67 | +★ Binlinked watch from core/procps-ng/3.3.15/20200702121715 to /bin/watch |
| 68 | +» Binlinking free from core/procps-ng/3.3.15/20200702121715 into /bin |
| 69 | +★ Binlinked free from core/procps-ng/3.3.15/20200702121715 to /bin/free |
| 70 | +» Binlinking uptime from core/procps-ng/3.3.15/20200702121715 into /bin |
| 71 | +★ Binlinked uptime from core/procps-ng/3.3.15/20200702121715 to /bin/uptime |
| 72 | +» Binlinking pkill from core/procps-ng/3.3.15/20200702121715 into /bin |
| 73 | +★ Binlinked pkill from core/procps-ng/3.3.15/20200702121715 to /bin/pkill |
| 74 | +» Binlinking tload from core/procps-ng/3.3.15/20200702121715 into /bin |
| 75 | +★ Binlinked tload from core/procps-ng/3.3.15/20200702121715 to /bin/tload |
| 76 | +» Binlinking vmstat from core/procps-ng/3.3.15/20200702121715 into /bin |
| 77 | +★ Binlinked vmstat from core/procps-ng/3.3.15/20200702121715 to /bin/vmstat |
| 78 | +» Binlinking ps from core/procps-ng/3.3.15/20200702121715 into /bin |
| 79 | +★ Binlinked ps from core/procps-ng/3.3.15/20200702121715 to /bin/ps |
| 80 | +» Binlinking top from core/procps-ng/3.3.15/20200702121715 into /bin |
| 81 | +★ Binlinked top from core/procps-ng/3.3.15/20200702121715 to /bin/top |
| 82 | +» Binlinking sysctl from core/procps-ng/3.3.15/20200702121715 into /bin |
| 83 | +★ Binlinked sysctl from core/procps-ng/3.3.15/20200702121715 to /bin/sysctl |
| 84 | +» Binlinking pgrep from core/procps-ng/3.3.15/20200702121715 into /bin |
| 85 | +★ Binlinked pgrep from core/procps-ng/3.3.15/20200702121715 to /bin/pgrep |
| 86 | +» Binlinking pmap from core/procps-ng/3.3.15/20200702121715 into /bin |
| 87 | +★ Binlinked pmap from core/procps-ng/3.3.15/20200702121715 to /bin/pmap |
| 88 | +» Binlinking pidof from core/procps-ng/3.3.15/20200702121715 into /bin |
| 89 | +★ Binlinked pidof from core/procps-ng/3.3.15/20200702121715 to /bin/pidof |
| 90 | +» Binlinking w from core/procps-ng/3.3.15/20200702121715 into /bin |
| 91 | +★ Binlinked w from core/procps-ng/3.3.15/20200702121715 to /bin/w |
| 92 | +» Binlinking slabtop from core/procps-ng/3.3.15/20200702121715 into /bin |
| 93 | +★ Binlinked slabtop from core/procps-ng/3.3.15/20200702121715 to /bin/slabtop |
| 94 | +``` |
| 95 | + |
| 96 | +#### Using an example binary |
| 97 | + |
| 98 | +You can now use the binary as normal. For example: |
| 99 | + |
| 100 | +``/bin/free --help`` or ``free --help`` |
| 101 | + |
| 102 | +```bash |
| 103 | +$ free --help |
| 104 | + |
| 105 | +Usage: |
| 106 | + free [options] |
| 107 | + |
| 108 | +Options: |
| 109 | + -b, --bytes show output in bytes |
| 110 | +... |
| 111 | +... |
| 112 | +``` |
0 commit comments