Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix, pacman, scoop, winget 安装 bun

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bun

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install bun

MacPorts ports tree · devel/bun/Portfile · 来源: api.github.com

Linux

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S bun

Arch Linux sync databases · bun · 来源: geo.mirror.pkgbuild.com

Windows

Chocolatey已验证 · 92%
choco install bun

Chocolatey community package catalog · bun · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/bun

Scoop official bucket manifest trees · bucket/bun.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Oven-sh.Bun -e

Windows Package Manager source index · Oven-sh.Bun · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Incredibly fast JavaScript runtime, bundler, test runner, and package manager

命令和别名

  • bun
  • bunx

历史

项目历史与用法

Bun is an all-in-one JavaScript and TypeScript toolkit: runtime, package manager, script runner, test runner, package runner, and bundler shipped as a single executable.

项目历史

Bun was created as a response to the accumulated layers of Node.js-era JavaScript tooling. The official 1.0 announcement, published on September 8, 2023, framed Bun as a stable, production-ready toolkit for running, building, testing, and debugging JavaScript and TypeScript.

The project is powered by JavaScriptCore rather than V8 and is designed as a faster, leaner, more modern replacement for Node.js while preserving compatibility with npm packages, Node-style module resolution, CommonJS, ES modules, Web APIs, and many Node built-ins.

Bun's documentation later described it as written in Rust and powered by JavaScriptCore, while the GitHub README emphasizes that the single `bun` command includes the runtime plus test runner, script runner, package manager, and package runner.

采用历史

Bun moved from an alternative runtime curiosity into mainstream JavaScript tooling after the 1.0 release because it promised speed without forcing developers to abandon existing package.json projects. Official install paths include shell installer, npm, Homebrew, Docker, and Windows PowerShell, and package-manager metadata now lists it across Homebrew, Chocolatey, MacPorts, Nix, pacman, Scoop, and winget.

Its adoption is tied to projects experimenting with faster local feedback loops: replacing Node for script execution, replacing npm/yarn/pnpm for installs, replacing Jest/Vitest in some tests, and replacing separate bundlers for simple build cases.

使用方式

Common commands include `bun run` for scripts and TypeScript files, `bun install` for npm-compatible dependency installation, `bun test` for tests, `bun build` for bundling, and `bunx` for executing packages. Configuration is optional and lives in local or global `bunfig.toml` files for Bun-specific settings.

Bun's package manager writes `node_modules`, reads package.json, uses a global cache, and supports workspaces and npm registry configuration. Because it aims to run existing Node.js applications with little or no change, usage often starts as a drop-in replacement for selected scripts rather than a full-stack rewrite.

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

Bun is significant because it collapses several previously separate JavaScript package tools into one binary. For package historians, it marks a major post-Node/npm phase where runtime, package manager, test runner, and bundler compete as integrated developer platforms rather than independent commands.

It is also important because it made package-manager performance and lockfile workflows part of a runtime's identity. Bun's rise pressured the broader ecosystem to treat install speed, TypeScript startup, test speed, and Node compatibility as one developer-experience surface.

时间线

  • 2023-09-08: Bun 1.0 announced as stable and production-ready.
  • 2024: 1.x releases continued expanding Node.js compatibility and toolkit coverage.
  • 2025: Official docs describe Bun as a runtime, package manager, test runner, and bundler for modern JavaScript and TypeScript apps.
  • 2026-05: GitHub release feed shows Bun v1.3.14 with ongoing 1.3.x releases.

Related projects

  • Bun is most directly related to Node.js, npm, yarn, pnpm, npx, ts-node, tsx, esbuild, webpack, Rollup, Parcel, Jest, Vitest, Deno, and the JavaScriptCore/WebKit project.

安全态势

尚未找到受保护工具覆盖

没有找到 bun 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • Homebrew 为此 formula 声明了 post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 4 个构建依赖。

建议审查

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

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
bunfig.toml~/.bunfig.toml$XDG_CONFIG_HOME/.bunfig.toml

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
bunfig.toml~/.bunfig.toml$XDG_CONFIG_HOME/.bunfig.toml

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本1.3.14
管理器更新时间2026-06-03
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/oven-sh/bun

安装元数据

软件包元数据

软件包键brew:bun
版本1.3.14
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/bun
主页https://bun.com/
仓库https://github.com/oven-sh/bun
上游文档https://bun.com/docs
许可证MIT AND LGPL-2.0-or-later AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND IJG AND LGPL-2.1-or-later AND Zlib AND (Apache-2.0 WITH LLVM-exception)
源码归档https://github.com/oven-sh/bun.git
最后更新2026-06-03T16:56:51Z
Pulseupdated
构建依赖cmake, llvm@21, ninja, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install已定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

bun

nix profile install nixpkgs#bun
  • normalized package name match
  • 匹配方式:Bun
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/bu/bun/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

bun 1.3.14-1

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

https://github.com/oven-sh/bun

sudo pacman -S bun
  • License: MIT
  • Architecture: x86_64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Bun
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bun from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

bun

sudo port install bun
  • normalized package name match
  • 匹配方式:Bun
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/bun/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

bun

choco install bun
  • normalized package name match
  • 匹配方式:Bun
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: bun from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','bluejeansapp'
Scoop95%

main/bun

scoop install main/bun
  • normalized package name match
  • 匹配方式:Bun
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/bun.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Oven-sh.Bun

winget install --id Oven-sh.Bun -e
  • normalized package name match
  • 匹配方式:Bun
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Oven-sh.Bun from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

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

使用的来源

  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment