# 使用 Homebrew, apk, apt, Nix, pacman, zypper 安装 esbuild

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

## 安装

```sh
sudo av install brew:esbuild
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install esbuild
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add esbuild
```

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

- Debian apt (92%):

```sh
sudo apt install esbuild
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#esbuild
```

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

- pacman (92%):

```sh
sudo pacman -S esbuild
```

  证据: Arch Linux sync databases: esbuild from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install esbuild
```

  证据: openSUSE Tumbleweed package metadata: esbuild from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:esbuild
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/esbuild>
- **版本:** 0.28.1
- **来源摘要:** Extremely fast JavaScript bundler and minifier
- **主页:** <https://esbuild.github.io/>
- **仓库:** <https://github.com/evanw/esbuild>
- **上游文档:** <https://esbuild.github.io/>
- **许可证:** MIT
- **源码归档:** <https://github.com/evanw/esbuild/archive/refs/tags/v0.28.1.tar.gz>
- **最后更新:** 2026-07-25T14:23:18-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- esbuild (cli)
- esbuild (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

esbuild is a JavaScript and CSS bundler and minifier whose package identity is built around speed: its upstream README describes the project goal as making web build tools far faster while still providing a modern, easy-to-use bundler.

### 项目历史

The project is developed in the evanw/esbuild repository and is documented on esbuild.github.io. Its public npm release history shows 0.1.0 published in April 2020, followed by rapid 0.x releases as the tool accumulated bundling, minification, TypeScript, JSX, CSS, source-map, watch, serve, and plugin capabilities.

esbuild's design is deliberately different from traditional JavaScript build tools: it ships as native code, exposes CLI, JavaScript, and Go APIs, and emphasizes doing parsing, printing, bundling, and minification without a cache. The upstream README frames this as a response to existing web build tools being much slower than necessary.

### 采用历史

The package became important in JavaScript tooling because it offered a fast native binary through ordinary package-manager workflows. The npm package is the primary JavaScript distribution, while Homebrew and multiple Unix package managers carry command-line builds for system-level installation.

Its adoption pattern differs from older bundlers such as webpack and Rollup: many projects use esbuild directly for fast bundling or minification, while others use it as an embedded transform/minify engine behind higher-level developer tools.

### 使用方式

Common use is direct CLI invocation for bundling, minifying, transforming, or serving web assets, or calling the JavaScript API from build scripts. The official docs also document a Go API, loaders for JavaScript, TypeScript, JSX, CSS, JSON, text, and binary assets, and a plugin system for custom resolution and loading.

For package-manager users, esbuild is notable because installation has to land the correct platform-specific executable. The official getting-started documentation discusses npm installation details and additional npm flags, while Homebrew exposes a single `esbuild` command for local use.

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

esbuild changed expectations for JavaScript package tooling latency. Package nerds care because it made native, single-purpose build executables feel normal in frontend toolchains, and because its versioned binary distribution model sits at the intersection of npm packages, system packages, and reproducible builds.

It is also a useful comparison point for later tools: when a new bundler, transpiler, or dev server advertises speed, esbuild is one of the baseline projects people instinctively measure against.

### 时间线

- 2020: esbuild 0.1.0 published to npm.
- 2020: 0.8.0-era releases show the project already moving quickly through bundler and transform features.
- 2021: 0.14.x releases continue the long-running pre-1.0 cadence.
- 2026: 0.28.x releases still ship active fixes and platform/package integrity work.

### Related projects

- Related tools in the same package-manager conversation include webpack, Rollup, SWC, Babel, Terser, and Vite. esbuild overlaps with several of them but is commonly valued for fast transform, bundle, and minify paths rather than as an all-purpose application framework.

### 来源

- <https://github.com/evanw/esbuild>
- <https://esbuild.github.io/>
- <https://esbuild.github.io/api/>
- <https://esbuild.github.io/getting-started/>
- <https://github.com/evanw/esbuild/blob/main/CHANGELOG.md>
- <https://www.npmjs.com/package/esbuild>
- <https://formulae.brew.sh/formula/esbuild>


## 安全说明

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:** esbuild
- **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 - esbuild - 0.25.5-1+b1: normalized package name match | Debian stable package indexes: esbuild from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | extremely fast JavaScript bundler and minifier (program) | https://github.com/evanw/esbuild
- Nix - esbuild: normalized package name match | nixpkgs package indexes: pkgs/by-name/es/esbuild/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - esbuild - 0.20.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: esbuild from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | extremely fast JavaScript bundler and minifier (program) | https://github.com/evanw/esbuild
- apk - esbuild - 0.27.1-r7: normalized package name match | Alpine Linux edge package indexes: esbuild from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely fast JavaScript bundler and minifier | https://esbuild.github.io/
- apk - esbuild-doc - 0.27.1-r7: normalized package name match | Alpine Linux edge package indexes: esbuild-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely fast JavaScript bundler and minifier (documentation) | https://esbuild.github.io/
- pacman - esbuild - 0.28.1-1: normalized package name match | Arch Linux sync databases: esbuild from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An extremely fast JavaScript and CSS bundler and minifier. | https://esbuild.github.io/
- zypper - esbuild - 0.28.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: esbuild from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A JavaScript bundler written for speed | https://esbuild.github.io


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [neonctl](https://pkg.so/zh-hans/brew/neonctl/) - Popular package that depends on this formula.
- [docmd](https://pkg.so/zh-hans/brew/docmd/) - Popular package that depends on this formula.
- [nx](https://pkg.so/zh-hans/brew/nx/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, javascript, typescript.
- [node-sass](https://pkg.so/zh-hans/brew/node-sass/) - Shares pkgdb curated category or tags: build-tools, cli, css, developer-tools, javascript.
- [rollup](https://pkg.so/zh-hans/brew/rollup/) - Shares pkgdb curated category or tags: build-tools, bundler, cli, developer-tools, javascript.
- [mako](https://pkg.so/zh-hans/brew/mako/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, javascript, typescript.
- [ncc](https://pkg.so/zh-hans/brew/ncc/) - Shares pkgdb curated category or tags: build-tools, bundler, cli, developer-tools, javascript.
- [prettier](https://pkg.so/zh-hans/brew/prettier/) - Shares pkgdb curated category or tags: cli, css, developer-tools, javascript, typescript.
- [minify](https://pkg.so/zh-hans/brew/minify/) - Shares pkgdb curated category or tags: cli, css, developer-tools, javascript, minifier.
- [yuicompressor](https://pkg.so/zh-hans/brew/yuicompressor/) - Shares pkgdb curated category or tags: cli, css, developer-tools, javascript, minifier.
- [esbuild](https://pkg.so/zh-hans/npm/esbuild/) - Same normalized package name appears in another local ecosystem. Shared terms: build, build-tools, bundler, cli, css.
- [esbuild-wasm](https://pkg.so/zh-hans/npm/esbuild-wasm/) - Executable or command metadata overlaps with this package. Shared terms: build, build-tools, bundler, cli, developer.
- [rolldown](https://pkg.so/zh-hans/npm/rolldown/) - Both packages touch the same language runtime or ecosystem. Shared terms: build, build-tools, bundler, cli, developer.
- [esbuild](https://pkg.so/zh-hans/npm/esbuild/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/esbuild.yml](https://github.com/mxcl/pkgdb/blob/main/combined/esbuild.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
