Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 afsctool

查看 afsctool 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install afsctool

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install afsctool

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

Linux

Nix已验证 · 92%
nix profile install nixpkgs#afsctool

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

概览

软件包摘要

Utility for manipulating APFS and ZFS compressed files

命令和别名

  • afsctool
  • zfsctool

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:compress

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
afsctoolcli全局可执行文件
zfsctoolcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本1.7.3
管理器更新时间2026-07-02
本地数据OK
上游当前
检测到的最新版本v1.7.3

https://github.com/RJVB/afsctool

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:afsctool
版本1.7.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/afsctool
主页https://brkirch.wordpress.com/afsctool/
仓库https://github.com/RJVB/afsctool
上游文档https://brkirch.wordpress.com/afsctool
许可证GPL-3.0-only AND BSL-1.0
源码归档https://github.com/RJVB/afsctool/archive/refs/tags/v1.7.3.tar.gz
最后更新2026-07-02T11:12:14-04:00
Pulseupdated
构建依赖cmake, google-sparsehash, pkgconf
Bottle可用 (于 arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

afsctool

nix profile install nixpkgs#afsctool
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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