# Install minify with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, scoop

Minifier for HTML, CSS, JS, JSON, SVG, and XML. Version 2.24.13 via Homebrew; verified 2026-04-24.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install minify
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install minify
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: Chocolatey community package catalog: minify from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.158','newfiletime'

- Scoop (92%):

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

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

## Package facts

- **Package key:** brew:minify
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/minify>
- **Version:** 2.24.13
- **Source summary:** Minifier for HTML, CSS, JS, JSON, SVG, and XML
- **Homepage:** <https://go.tacodewolff.nl/minify>
- **Repository:** <https://github.com/tdewolff/minify>
- **Upstream docs:** <https://github.com/tdewolff/minify#readme>
- **License:** MIT
- **Source archive:** <https://github.com/tdewolff/minify/archive/refs/tags/v2.24.13.tar.gz>
- **Last updated:** 2026-04-24T12:07:34Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- minify (cli)
- minify (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.24.13
- Package-manager updated: 2026-04-24
- Local data: ok
- Upstream repository: https://github.com/tdewolff/minify
- Upstream latest detected: v2.24.13 (current)
## Project history and usage

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.

### Project history

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.

### How it is used

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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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.11-r2: 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.11-r2: 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.8-3.fc44: normalized package name match | Fedora Rawhide package metadata: minify from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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='7.158','newfiletime'
- 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [js-beautify](https://www.automicvault.com/pkg/brew/js-beautify/) - Shares av.db curated category or tags: cli, css, developer-tools, html, javascript.
- [htmlcompressor](https://www.automicvault.com/pkg/brew/htmlcompressor/) - Shares av.db curated category or tags: cli, developer-tools, html, minification, minifier.
- [angular-cli](https://www.automicvault.com/pkg/brew/angular-cli/) - Shares av.db curated category or tags: cli, developer-tools, javascript, web-development.
- [css-crush](https://www.automicvault.com/pkg/brew/css-crush/) - Shares av.db curated category or tags: cli, css, developer-tools, web-development.
- [esbuild](https://www.automicvault.com/pkg/brew/esbuild/) - Shares av.db curated category or tags: cli, css, developer-tools, javascript, minifier.
- [gwt](https://www.automicvault.com/pkg/brew/gwt/) - Shares av.db curated category or tags: cli, developer-tools, javascript, web-development.
- [nuxi](https://www.automicvault.com/pkg/brew/nuxi/) - Shares av.db curated category or tags: cli, developer-tools, javascript, web-development.
- [sassc](https://www.automicvault.com/pkg/brew/sassc/) - Shares av.db curated category or tags: cli, css, developer-tools, web-development.
- [minify](https://www.automicvault.com/pkg/npm/minify/) - Same normalized package name appears in another local ecosystem. Shared terms: css, html, js, minifier, minify.
- [minify](https://www.automicvault.com/pkg/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/automic-vault/db/blob/main/combined/minify.yml)


## Sources

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