# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, scoop 安装 minify

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

## 安装

```sh
sudo av install brew:minify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install minify
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install minify
```

  证据: MacPorts ports tree: devel/minify/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add minify
```

  证据: Alpine Linux edge package indexes: minify from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install minify
```

  证据: Debian stable package indexes: minify from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install minify
```

  证据: Fedora Rawhide package metadata: minify from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#minify
```

  证据: nixpkgs package indexes: pkgs/by-name/mi/minify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Chocolatey (92%):

```sh
choco install minify
```

  证据: Chocolatey community package catalog: minify from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='8.17','wwphone-cti'

- Scoop (92%):

```sh
scoop install main/minify
```

  证据: Scoop official bucket manifest trees: bucket/minify.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:minify
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/minify>
- **版本:** 2.24.14
- **来源摘要:** Minifier for HTML, CSS, JS, JSON, SVG, and XML
- **主页:** <https://go.tacodewolff.nl/minify>
- **仓库:** <https://github.com/tdewolff/minify>
- **上游文档:** <https://go.tacodewolff.nl/minify>
- **许可证:** MIT
- **源码归档:** <https://github.com/tdewolff/minify/archive/refs/tags/v2.24.14.tar.gz>
- **最后更新:** 2026-07-29T17:04:55+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- minify (cli)
- minify (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.24.14
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/tdewolff/minify
- 检测到的最新版本: v2.24.14 (当前)
## 项目历史与用法

Minify is Taco de Wolff's Go-based minifier library and command-line tool for web formats. The GitHub README describes it as a package for HTML5, CSS3, JavaScript, JSON, SVG, and XML, with a MIME-type dispatch interface that lets applications add their own minifiers or redirect work to external tools.

### 项目历史

The project grew from a library into a practical CLI used in build pipelines: the command README documents installation from source, Go install, Docker usage, recursive and in-place minification, bundling, MIME/extension handling, and format-specific options such as CSS precision and HTML comment or tag preservation. The public web service at go.tacodewolff.nl/minify exposes the same core formats for interactive use.

### 使用方式

Its ecosystem niche is Go-native asset minification. It competes with Node-centered tools and single-format minifiers by covering several web asset types in one Go module, using streaming high-performance implementations, and offering bindings outside Go, including JavaScript and .NET bindings noted by the project. Hugo community discussions and issues around Hugo's --minify behavior show the library's use inside static-site generation workflows.

### 来源

- <https://discourse.gohugo.io/t/about-the-minifier-used-in-hugo-pipes-in-a-totally-unrelated-context/12850>
- <https://formulae.brew.sh/formula/minify>
- <https://github.com/tdewolff/minify>
- <https://github.com/tdewolff/minify/blob/master/cmd/minify/README.md>
- <https://go.tacodewolff.nl/minify>
- <https://pkg.go.dev/github.com/tdewolff/Minify>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** minify
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Debian apt - minify - 2.20.37-1: normalized package name match | Debian stable package indexes: minify from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLI implementation of the Go minify library package | https://github.com/tdewolff/minify
- Nix - minify: normalized package name match | nixpkgs package indexes: pkgs/by-name/mi/minify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - minify - 2.20.17-1: normalized package name match | Ubuntu 24.04 LTS package indexes: minify from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI implementation of the Go minify library package | https://github.com/tdewolff/minify
- apk - minify - 2.24.13-r1: normalized package name match | Alpine Linux edge package indexes: minify from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Minifier CLI for HTML, CSS, JS, JSON, SVG and XML | https://github.com/tdewolff/minify
- apk - minify-bash-completion - 2.24.13-r1: normalized package name match | Alpine Linux edge package indexes: minify-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for minify | https://github.com/tdewolff/minify
- dnf - minify - 2.24.13-2.fc45: normalized package name match | Fedora Rawhide package metadata: minify from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Go minifiers for web formats | https://github.com/tdewolff/minify
- MacPorts - minify: normalized package name match | MacPorts ports tree: devel/minify/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - minify: normalized package name match | Chocolatey community package catalog: minify from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='8.17','wwphone-cti'
- Scoop - main/minify: normalized package name match | Scoop official bucket manifest trees: bucket/minify.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [js-beautify](https://pkg.so/zh-hans/brew/js-beautify/) - Shares pkgdb curated category or tags: cli, css, developer-tools, html, javascript.
- [angular-cli](https://pkg.so/zh-hans/brew/angular-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, web-development.
- [esbuild](https://pkg.so/zh-hans/brew/esbuild/) - Shares pkgdb curated category or tags: cli, css, developer-tools, javascript, minifier.
- [vscode-langservers-extracted](https://pkg.so/zh-hans/brew/vscode-langservers-extracted/) - Shares pkgdb curated category or tags: cli, css, developer-tools, html, json.
- [yuicompressor](https://pkg.so/zh-hans/brew/yuicompressor/) - Shares pkgdb curated category or tags: cli, css, developer-tools, javascript, minifier.
- [sassc](https://pkg.so/zh-hans/brew/sassc/) - Shares pkgdb curated category or tags: cli, css, developer-tools, web-development.
- [nuxi](https://pkg.so/zh-hans/brew/nuxi/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, web-development.
- [css-crush](https://pkg.so/zh-hans/brew/css-crush/) - Shares pkgdb curated category or tags: cli, css, developer-tools, web-development.
- [minify](https://pkg.so/zh-hans/npm/minify/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, css, developer, developer-tools, html.
- [babel-minify](https://pkg.so/zh-hans/npm/babel-minify/) - Executable or command metadata overlaps with this package. Shared terms: cli, developer, developer-tools, minification, minifier.
- [html-minifier](https://pkg.so/zh-hans/npm/html-minifier/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, css, developer, developer-tools, development.
- [minify](https://pkg.so/zh-hans/npm/minify/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/minify.yml](https://github.com/mxcl/pkgdb/blob/main/combined/minify.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
