Packages / bun
APT repository · deb.freshdeb.com/bunprinted 4 Nov 2026, 01:42 UTC
bun
Bun, a JavaScript and TypeScript runtime that aims to be a drop-in replacement for Node.js. The one binary also bundles code, runs tests and installs npm packages. This is the one freshdeb package not built from source, so you trust upstream's build for it. One release line for Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04 on amd64 and arm64.
latest 1.4.4bun.comupstream sourcepackaging
Componentmain
follows every upstream release, minors and majors included. Currently 1.4.4.
Not published yet. The first bun release is being built. These commands will work once it lands at deb.freshdeb.com/bun; the versions shown are the ones package.yaml will publish.
1Trust the signing key (once per machine)
sudo install -d -m 0755 /etc/apt/keyrings curl -fsSL https://deb.freshdeb.com/freshdeb-archive-keyring.gpg \ | sudo tee /etc/apt/keyrings/freshdeb-archive-keyring.gpg >/dev/null
Fingerprint 3BBD F03A 9C0B F890 F8CA 9510 7595 CC55 468F 3161. How to verify.
2Add the source
sudo tee /etc/apt/sources.list.d/freshdeb-bun.sources >/dev/null <<EOF
Types: deb
URIs: https://deb.freshdeb.com/bun
Suites: $(. /etc/os-release && echo $VERSION_CODENAME)
Components: main
Signed-By: /etc/apt/keyrings/freshdeb-archive-keyring.gpg
EOFWith auto, the shell reads the codename from /etc/os-release on the machine you paste this into.
3Install
sudo apt update && sudo apt install bun
apt policy bun # expect 1.4.4-1+freshdeb~…Before you install bun
Neither Debian nor Ubuntu ship bun. An install from upstream's script stays in ~/.bun/bin, and the PATH line it uses puts that first, so that copy keeps running. Remove it, or take it out of PATH, to use this package.
How it's packaged
No distribution packages bun, so the packaging is ours, written the way Debian would. The build, the defaults and the layout follow upstream's wherever upstream has them.
- Distributions
- None of the supported releases ship Bun. The packaging is ours, around upstream's release binary.
- Binary
- Upstream's release binary, byte for byte and not stripped. Building Bun needs an exact LLVM, a Rust nightly, a previous Bun and a prebuilt JavaScriptCore, which the builders can't pin.
- Checks
- The release zips are pinned by sha256 (also in upstream's
SHASUMS256.txt), and the build checks that the binary reports the pinned version and commit. - Layout
/usr/bin/bunand/usr/bin/bunx, with bash, zsh and fish completions from the pinned tag.LICENSE.mdin/usr/share/doc/bunlists the statically linked libraries, with their licenses.- Updates
bun upgradeisn't turned off, so update with apt. As root and withunzipinstalled,bun upgradereplaces/usr/bin/bunbehind dpkg's back, and the next package update overwrites that again. Withoutunzipit stops with an error.- Global packages
bun install -ginstalls to~/.bun, not/usr.- Release lines
- One,
main, which follows every release: upstream supports only its latest.
Packing list
Every release line of bun and the distributions it's built for. Each line is its own APT component and only gets the releases it follows (main: every upstream release, minors and majors included). After upstream end of life it stops building but stays installable. Hatched cells have no build: usually that distribution already ships the same or a newer version itself.
| Line | Component | Current | bookwormDebian 12 | trixieDebian 13 | jammyUbuntu 22.04 | nobleUbuntu 24.04 | resoluteUbuntu 26.04 | Support |
|---|---|---|---|---|---|---|---|---|
| main | main | 1.4.4 | built: 1.4.4-1 | built: 1.4.4-1 | built: 1.4.4-1 | built: 1.4.4-1 | built: 1.4.4-1 | – |
Versions follow <upstream>-<revision>+freshdeb~<distro>, distro being deb12, deb13, ubuntu22.04, ubuntu24.04 or ubuntu26.04, for amd64 and arm64. Published versions are never rebuilt or replaced.
Contents
- bun
- The runtime, bundler, test runner and package manager, as bun and bunx, with shell completions.
Origin
- Upstream
- github.com/oven-sh/bunupstream's release binary, unchanged and not built from source, pinned by sha256
- Packaging
- our own, in Debian's styleno distribution packages bun
- Built for
- bookworm, trixie, jammy, noble, resoluteamd64, arm64, packaged natively
- Files
- package.yaml · debian/ · report an issuepackage.yaml explains every change
Also in Developer tools
- composer2.11.1Dependency manager for PHP, as upstream's composer.pharmain
- forgejo17.0.1Self-hosted software forge: Git hosting, code review and CImainlts
- git2.56.0Distributed version control systemmain
- golang1.27.3Go compiler and tools, as the default go, one line per supported minor1.27latest1.26
- lazygit0.66.2Terminal UI for git commandsmain
- nano9.3Small, friendly text editormain
- neovim0.12.6Vim-based text editor, with its bundled LuaJIT and tree-sitter parsersmain