Automic VaultAutomic Vault

brew

Install afsctool with Homebrew, MacPorts, Nix

Utility for manipulating APFS and ZFS compressed files. Version 1.7.3 via Homebrew; verified 2026-07-02.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install afsctool

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install afsctool

MacPorts ports tree · sysutils/afsctool/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#afsctool

nixpkgs package indexes · pkgs/by-name/af/afsctool/package.nix · source: api.github.com

overview

Package summary

Utility for manipulating APFS and ZFS compressed files

Commands and aliases

  • afsctool
  • zfsctool

history

Project history and usage

afsctool is a command-line utility for applying, removing, and inspecting Apple filesystem compression. The original brkirch page describes it as an AFSC tool for HFS+ compression on Mac OS X 10.6 or later; the packaged RJVB fork extends that lineage with APFS-related work and a companion zfsctool.

Project history

The original afsctool was published by brkirch as a Mac OS X utility for HFS+ compression. The RJVB repository identifies itself as a modified version of brkirch's afsctool and documents changes around error reporting, large-file memory pressure, multiple file arguments, backups, read-only files, and parallel compression.

The RJVB fork became the source used by modern package managers. Its README records versioned feature work in the 1.6 and 1.7 series, including parallel compression options, additional compression types introduced by Apple in OS X 10.9 and later, LZVN support, and later LZFSE support.

Adoption history

afsctool is narrow but useful enough to appear in macOS-oriented package sets: the supplied facts list Homebrew, MacPorts, and Nix. That adoption tracks its niche: users who need to inspect or recompress files with Apple filesystem compression from scripts rather than through Finder or filesystem internals.

The RJVB fork also documents package-manager build dependencies and gives Homebrew and MacPorts examples, which helps explain why downstream formulae can build it despite the tool's macOS-specific subject matter.

How it is used

Typical usage is post-hoc compression or inspection of files and folders already on a supported filesystem. The RJVB fork adds options for parallel compression, sorting work items by size, and changing compression types when the operating system and linked libraries support them.

zfsctool, built from the same repository, adapts the afsctool idea to ZFS recompression statistics and experiments. The README is explicit that zfsctool is still a work in progress, so package users should treat afsctool as the primary stable executable.

Why package nerds care

afsctool is a classic small system package: obscure until you need it, highly platform-specific, and tightly bound to filesystem behavior and Apple compression formats. It is interesting to package maintainers because its dependency story and feature set move with macOS filesystem APIs and compression libraries.

The Homebrew formula exposes the RJVB fork rather than only the older brkirch page, so curation needs both sources: the original homepage explains the tool's purpose, while the repository explains the maintained code users actually install.

Timeline

  • 2012: brkirch afsctool page published for the original AFSC utility.
  • 2015: RJVB afsctool GitHub repository created.
  • 2018: RJVB 1.6.9 release commit added size sorting and reverse-worker options for parallel mode.
  • 2024: RJVB repository still receiving updates according to GitHub metadata.

Related projects

  • Apple HFS+ and APFS filesystem compression are the core operating-system features afsctool manipulates.
  • RJVB's LZVN fork and the lzfse/lzfse reference implementation are mentioned by the README as compression-library dependencies in the 1.7 series.
  • zfsctool is the same repository's experimental ZFS-oriented companion utility.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:compress

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
afsctoolcliglobal executable
zfsctoolcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.7.3
manager updated2026-07-02
local dataok
upstreamcurrent
latest detectedv1.7.3

https://github.com/RJVB/afsctool

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:afsctool
Version1.7.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/afsctool
Homepagehttps://brkirch.wordpress.com/afsctool/
Repositoryhttps://github.com/RJVB/afsctool
Upstream docshttps://brkirch.wordpress.com/afsctool
LicenseGPL-3.0-only AND BSL-1.0
Source archivehttps://github.com/RJVB/afsctool/archive/refs/tags/v1.7.3.tar.gz
Last updated2026-07-02T11:12:14-04:00
Pulseupdated
Build dependenciescmake, google-sparsehash, pkgconf
Bottleavailable (on arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameafsctool
Version Scheme0
Revision0
Head VersionHEAD
Requirements
  • macos
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

afsctool

nix profile install nixpkgs#afsctool
  • normalized package name match
  • Matched by: Afsctool
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/af/afsctool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

afsctool

sudo port install afsctool
  • normalized package name match
  • Matched by: Afsctool
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/afsctool/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment