53 outils de développement, toujours à jour — chaque nouvelle version upstream arrive dans apt en quelques heures. Rejoindre le Discord

📅 À partir du , le miroir apt nécessitera un abonnement. Voir les tarifs · 🆓 Il existe un miroir gratuit pour toujours

🥟 Installer la dernière version de Bun sur Ubuntu

Dernière version : 1.4.0 · mis à jour le 2026-08-20
SourceVersion
deb.griffo.io1.4.0 ✅
Ubuntu officiel🚫 non empaqueté

Runtime JavaScript tout-en-un rapide avec bundler, exécuteur de tests et gestionnaire de paquets

← Retour à l'accueil

Qu\'est-ce que Bun ?

Bun is a fast all-in-one JavaScript runtime built from scratch to serve the modern JavaScript ecosystem. It's designed as a drop-in replacement for Node.js with significantly better performance, featuring a built-in bundler, test runner, and package manager all in a single executable.

🚀 Pourquoi les dernières versions sont importantes : Bun is rapidly evolving with major performance improvements, new JavaScript/TypeScript features, and enhanced compatibility in each release. The dernière versions include critical bug fixes, improved Node.js compatibility, and significant speed improvements for package management and bundling.

🔥 Caractéristiques principales de Bun

⚡ Blazing Fast

Up to 4x faster than Node.js for many workloads, with optimized JavaScript engine and native code compilation.

📦 Built-in Package Manager

Install packages up to 25x faster than npm with built-in package management and lockfile compatibility.

🛠️ Bundler Included

Native bundler with tree-shaking, code splitting, and hot reloading - no webpack or rollup needed.

🧪 Test Runner

Built-in test runner compatible with Jest API, with parallel execution and watch mode.

🔄 Node.js Compatible

Drop-in replacement for Node.js with excellent compatibility for existing npm packages and APIs.

📝 TypeScript Native

Run TypeScript files directly without compilation step, with built-in transpilation.

📦 Installation depuis deb.griffo.io

Exécuter les commandes

Étape 1 : Ajouter le dépôt

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt update
install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update

🆓 Il existe un miroir gratuit pour toujours. deb-free.griffo.io distribue des paquets gratuitement pour toujours — sans compte, sans abonnement, au plus 2 mois derrière l'upstream, correctifs de sécurité immédiats. Il contient aujourd'hui cliamp, Ghostty, lazydocker, Oh My Posh et Zed ; Bun n'en fait pas partie, le dépôt ci-dessus reste donc le seul moyen de l'installer — demandez-le et il pourra y être ajouté.

Comment fonctionne le miroir gratuit →

📋 Available Bun Packages

deb.griffo.io provides three different Bun packages to suit different needs:

🥟 bun (Recommended)

Metapackage that automatically installers the latest stable bun-one. This is the recommended choice for most users as it ensures you always get the latest stable release.

sudo apt installer bun
apt installer bun
🚀 bun-one

Latest stable release of Bun runtime. This package contains the production-ready version with optimizations for performance and stability.

sudo apt installer bun-one
apt installer bun-one
🔍 bun-profile

Profiling-enabled build of Bun with debugging symbols and profiling capabilities. Ideal for development, debugging, and performance analysis. Slightly larger binary with additional debugging information.

sudo apt installer bun-profile
apt installer bun-profile

🔄 Managing Multiple Bun Versions

You can installer both bun-one and bun-profile simultaneously and switch between them using Debian's update-alternatives system:

Install both versions:

sudo apt installer bun-one bun-profile
apt installer bun-one bun-profile

Configure alternatives (done automatically during package installeration):

sudo update-alternatives --installer /usr/bin/bun bun /usr/bin/bun-one 100
sudo update-alternatives --installer /usr/bin/bun bun /usr/bin/bun-profile 90
update-alternatives --installer /usr/bin/bun bun /usr/bin/bun-one 100
update-alternatives --installer /usr/bin/bun bun /usr/bin/bun-profile 90

Switch between versions interactively:

sudo update-alternatives --config bun
update-alternatives --config bun

Check current version:

bun --version
which bun

Étape 2 : Installer Bun

sudo apt installer bun
apt installer bun

Step 3: Verify Installation

bun --version
bun --help

🚀 Quick Start Examples

Create a new project:

mkdir my-bun-app && cd my-bun-app
bun init

Install packages (faster than npm):

bun installer express
bun add -d @types/express

Run TypeScript directly:

echo 'console.log("Hello from Bun!")' > app.ts
bun run app.ts

Bundle for production:

bun build ./app.ts --outdir ./dist --minify

Run tests:

bun test

🔧 Configuration

Bun can be configured using a bunfig.toml file in your project root or home directory:

# bunfig.toml
[installer]
# Configure package manager behavior
cache = "~/.bun/installer/cache"
registry = "https://registry.npmjs.org"

[run]
# Configure script runner
shell = "bash"

[test]
# Configure test runner
preload = ["./setup.ts"]

⚡ Performance Benefits

📦 Package Installation

Up to 25x faster than npm, 4x faster than pnpm for installering dependencies.

🏃 Runtime Performance

4x faster than Node.js for many JavaScript workloads with optimized engine.

🛠️ Bundling Speed

Native bundler significantly faster than webpack, rollup, or esbuild.

🧪 Test Execution

Parallel test execution with built-in runner, faster than Jest or Vitest.

📦 Package Build Repository

Les paquets Ubuntu sont automatiquement construits et maintenus dans ce dépôt GitHub :

🔗 Related Packages

Enhance your development workflow with these complementary tools from deb.griffo.io:

📚 Additional Resources

📦 Dernières versions publiées par ce dépôt

❓ Questions fréquentes

Bun est-il dans les dépôts officiels de Ubuntu ?

Non, Bun n'est pas empaqueté dans les archives officielles de Ubuntu. Ce dépôt est actuellement la seule source apt et propose Bun 1.4.0.

Comment installer le dernier Bun sur Ubuntu ?

Ajoutez le dépôt deb.griffo.io une seule fois (instructions ci-dessus), puis exécutez : sudo apt install bun. Les nouvelles versions arrivent via le sudo apt upgrade habituel.

Les paquets sont-ils signés et comment sont-ils construits ?

Chaque paquet est signé avec la clé GPG du dépôt (EA0F721D231FDD3A0A17B9AC7808B4DD62C41256) et construit à partir des versions upstream dans des dépôts GitHub publics que chacun peut inspecter.

Quelles versions de Ubuntu sont prises en charge ?

Ubuntu 22.04 Jammy, 24.04 Noble, 25.10 Questing et 26.04 Resolute.