43 developer tools, always updated — new upstream releases land in apt within hours. Join the Discord

📅 From , the apt mirror will require a subscription. See pricing · 🆓 There is an always-free mirror

🇿 Install Latest Zig on Ubuntu

Get the most up-to-date Zig programming language packages

Latest version: 0.16.0 · updated 2026-07-08
SourceVersion
deb.griffo.io0.16.0 ✅
Official Ubuntu🚫 not packaged
← Back to home
📌 Installing on a specific release? Ubuntu 22.04 (jammy) · Ubuntu 24.04 (noble) · Ubuntu 25.10 (questing)

What is Zig?

Zig is a general-purpose programming language and toolchain designed for maintaining robust, optimal, and reusable software. Created by Andrew Kelley, Zig aims to be a better alternative to C, offering modern language features while maintaining the simplicity and performance that systems programmers need.

🚀 Why Latest Versions Matter: Zig is rapidly evolving with significant performance improvements, new language features, and critical bug fixes in each release. The latest 0.16.0 includes major enhancements like improved cross-compilation, faster compilation times, and enhanced debugging capabilities.

🔥 Key Features of Zig

⚡ Simple & Fast

No hidden control flow, no hidden memory allocations, no preprocessor. Focus on debugging your application, not your language knowledge.

🔧 Comptime Magic

Compile-time code execution and lazy evaluation. Call any function at compile-time and manipulate types as values without runtime overhead.

🌐 Cross-Compilation

Built-in cross-compilation support for dozens of targets. No external dependencies needed for most platforms.

🔄 C/C++ Interop

Use Zig as a drop-in C/C++ compiler with better cross-compilation. Incrementally adopt Zig in existing codebases.

🚀 Always ahead of the official archives: Debian and Ubuntu freeze package versions when a release ships — this repository publishes new upstream releases typically within hours. A simple apt upgrade keeps you on the latest version.

📦 Installation from deb.griffo.io

Run the commands

Step 1: Add 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 $(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

🆓 There is an always-free mirror. deb-free.griffo.io serves packages free forever — no account, no subscription, at most 2 months behind upstream, security fixes immediately. It currently carries Ghostty, Oh My Posh and Zed; Zig is not one of them, so the repository above is the only way to get it today — ask and it can be enrolled.

How the free mirror works →

Step 2: Install Zig

# Install current stable Zig
sudo apt install zig

# Or install nightly builds for cutting-edge features
sudo apt install zig-master
# Install current stable Zig
apt install zig

# Or install nightly builds for cutting-edge features
apt install zig-master

🎯 Basic Usage Examples

Create a new project:

# Create and enter project directory
mkdir my-zig-project && cd my-zig-project

# Initialize new Zig project
zig init

# Build and run
zig build run

Compile a single file:

# Create hello.zig
echo 'const std = @import("std");
pub fn main() void {
    std.debug.print("Hello, Zig!\n", .{});
}' > hello.zig

# Compile and run
zig run hello.zig

Use as C compiler:

# Compile C code with Zig
zig cc -o program program.c

# Cross-compile for different targets
zig cc -target x86_64-windows -o program.exe program.c

🚀 Why Choose deb.griffo.io?

⚠️ Official Debian Lag: Official Debian repositories often contain outdated Zig versions that may be months or even years behind the latest release, missing critical features and performance improvements.

📦 Package Build Repository

The Ubuntu packages are automatically built and maintained in these GitHub repositories:

🔗 Related Packages

Also available from deb.griffo.io:

🎯 Perfect for: Systems programming, game development, embedded systems, performance-critical applications, and anyone wanting a modern alternative to C with better safety and tooling.

💝 Support This Project

If this repository saves you time and effort, please consider supporting it!

⭐ Star on GitHub 🐦 Share on Twitter

Just after the command? See apt install zig-stable — one page covering Debian and Ubuntu.

📦 Recent releases from this repository

📚 Release-specific install guides

❓ Frequently asked questions

Is Zig in the official Ubuntu repositories?

No — Zig is not packaged in the official Ubuntu archives. This repository is currently the only apt source, serving Zig 0.16.0.

How do I install the latest Zig on Ubuntu?

Add the deb.griffo.io repository once using the instructions above, then run: sudo apt install zig-stable. New releases arrive through the normal sudo apt upgrade.

Are the packages signed and how are they built?

Every package is signed with the repository's GPG key (EA0F721D231FDD3A0A17B9AC7808B4DD62C41256) and built from upstream releases in public GitHub packaging repositories that anyone can inspect.

Which Ubuntu releases are supported?

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