📣 Important update — access is changing on 1 October 2026

Starting 1 October 2026 at noon (UK time), this mirror will require authentication to keep apt working.
A yearly subscription gives you uninterrupted access and directly supports keeping this project alive. Thank you! 🙏

🔑 Get Your Yearly Subscription

💬 Questions, issues or anything about this repo? Join our Discord community — the best place to get help and connect with other users.
Previously supported via Buy Me a Coffee? You are wonderful! Head over to our Discord and we will sort out a free lifetime subscription for you. 💜

⚙️ Install Zig on Debian 13 “Trixie”

A general-purpose programming language and toolchain for robust, optimal software

← Zig overview & all releases
📦 Currently serving: zig-stable 0.16.0-1+trixie for trixie (updated 2026-07-14) — architectures: amd64, arm64, riscv64. This page is regenerated automatically from the repository metadata, so the version above is exactly what apt install zig-stable gives you today.

Debian 13 “Trixie” is the current Debian stable release. Zig is not shipped at its latest version by the official Debian archives, so this repository builds current upstream releases as native .deb packages targeted specifically at trixie, with dependencies matching what Debian 13 actually ships.

🚀 Install Zig on trixie

Step 1: Add the deb.griffo.io repository

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 trixie 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 trixie main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null apt update

The sources line above pins the trixie suite explicitly, so it keeps working in containers and images where lsb_release is unavailable.

Step 2: Install Zig

sudo apt install -y zig-stable
apt install -y zig-stable

🔄 Updating

Updates arrive through normal system maintenance — new upstream releases are usually packaged within hours:

sudo apt update && sudo apt install --only-upgrade zig-stable

🗑️ Uninstalling

sudo apt remove zig-stable # optionally remove the repository as well: sudo rm /etc/apt/sources.list.d/deb.griffo.io.list /etc/apt/keyrings/deb.griffo.io.gpg

📋 Zig versions across Debian & Ubuntu releases

The same repository serves every supported release — this table is generated from the live repository metadata:

ReleaseSuiteZig version
Debian 12 “Bookworm”bookworm0.16.0-1+bookworm
Debian 13 “Trixie”trixie (this page)0.16.0-1+trixie
Debian 14 “Forky”forky0.16.0-1+forky
Debian Sidsid0.16.0-1+sid
Ubuntu 22.04 LTS “Jammy Jellyfish”jammy0.16.0-1+jammy
Ubuntu 24.04 LTS “Noble Numbat”noble0.16.0-1+noble
Ubuntu 25.10 “Questing Quokka”questing0.16.0-1+questing

❓ Frequently asked questions

Is this an official Zig package?

No — deb.griffo.io is an unofficial repository maintained by Dario Griffo. Packages are built automatically from official upstream Zig releases; the packaging is open source at dariogriffo/zig-debian.

Why not install Zig from the official Debian archive?

Debian's archive freezes package versions when a release ships and afterwards receives mostly security fixes, so fast-moving tools are either absent or several releases behind. This repository tracks upstream releases instead, with builds targeted at each Debian release.

How quickly do new Zig releases arrive?

The repository polls upstream releases and publishes new builds automatically, typically within hours of an upstream release. Subscribe to the release feed to follow updates.

Which architectures are supported on trixie?

zig-stable is currently built for: amd64, arm64, riscv64.

🔗 Related

💡 All releases: need Zig on a different Debian or Ubuntu version? The table above links to a dedicated guide for every supported release, or start from the Zig overview.