Home

Awesome

Build Status

attr

The attr package contains utilities to administer the extended attributes on filesystem objects. See documentation

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/attr as a dependency, you can add one of the following to your plan file.

Buildtime Dependency

pkg_build_deps=(core/attr)

Runtime dependency

pkg_deps=(core/attr)

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/attr --binlink

will add the following binaries to the PATH:

For example:

$ hab pkg install core/attr --binlink
» Installing core/attr
☁ Determining latest version of core/attr in the 'stable' channel
→ Using core/attr/2.4.48/20200305230504
★ Install of core/attr/2.4.48/20200305230504 complete with 0 new packages installed.
» Binlinking attr from core/attr/2.4.48/20200305230504 into /bin
★ Binlinked attr from core/attr/2.4.48/20200305230504 to /bin/attr
» Binlinking getfattr from core/attr/2.4.48/20200305230504 into /bin
★ Binlinked getfattr from core/attr/2.4.48/20200305230504 to /bin/getfattr
» Binlinking setfattr from core/attr/2.4.48/20200305230504 into /bin
★ Binlinked setfattr from core/attr/2.4.48/20200305230504 to /bin/setfattr

Using an example binary

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

/bin/getfattr --help or getfattr --help

getfattr --help
getfattr 2.4.48 -- get extended attributes
Usage: getfattr [-hRLP] [-n name|-d] [-e en] [-m pattern] path...
  -n, --name=name         get the named extended attribute value
  -d, --dump              get all extended attribute values
  -e, --encoding=...      encode values (as 'text', 'hex' or 'base64')
      --match=pattern     only get attributes with names matching pattern
      --only-values       print the bare values only
...
...