Overview
Bun ships as a single, dependency-free executable. You can install it on macOS, Linux, and Windows via script, package manager, or Docker.Installation
- macOS & Linux
- Windows
- Package Managers
- Docker
Linux users — The
unzip package is required to install Bun. Install it with sudo apt install unzip. Kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1. Use uname -r to check your kernel version.terminal
Add Bun to your PATH
Add Bun to your PATH
Upgrade
Once installed, the binary can self-upgrade:terminal
Canary builds
-> View canary build Bun automatically releases an (untested) canary build on every commit tomain. To upgrade to the latest canary build:
terminal
Install a specific version
Because Bun is a single binary, you can install a specific version by re-running the install script with a version specified.- Linux & macOS
- Windows
To install a specific version, pass a git tag to the install script:
terminal
Direct downloads
To directly download Bun binaries, visit the GitHub releases page.Latest release downloads
Linux x64
Standard Linux x64 binary
Linux x64 Baseline
For older CPUs without AVX2
Windows x64
Standard Windows binary
Windows x64 Baseline
For older CPUs without AVX2
Windows ARM64
For ARM-based Windows (Snapdragon, etc.)
macOS ARM64
Apple Silicon (M1/M2/M3)
macOS x64
Intel Mac
Linux ARM64
ARM64 Linux systems
Musl builds
For distributions that don’t supportglibc (Alpine Linux, Void Linux, etc.):
If you see errors like
bun: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29 not found, try the musl build. Bun’s
install script automatically picks the right binary for your system.CPU requirements
Bun has different CPU requirements depending on which binary you use:- Standard builds
- Baseline builds
x64 binaries target the Haswell CPU architecture (requires AVX and AVX2 instruction sets)
| Platform | Intel Requirement | AMD Requirement |
|---|---|---|
| x64 | Haswell (4th gen Core) and newer | Excavator and newer |
Bun does not support CPUs older than the baseline target, which requires SSE4.2 instruction support. macOS also requires version 13.0 or higher.
Uninstall
To remove Bun from your system:- macOS & Linux
- Windows
- Package Managers
terminal