🆓 Free forever — and licensed to stay that way

Every tool here is open source; its license guarantees the right to use and redistribute it. This mirror is that promise in practice: each package's newest release that is at least 2 months old, served free forever — no account, no authentication.
Security and patch fixes are published immediately. Want every release within hours of upstream? That's the main repository at deb.griffo.io. 🚀

💬 Questions, issues or anything about this repo? Join our Discord community — the best place to get help and connect with other users.

🇿 Install Latest Zig on Debian

Get Zig programming language packages from the free-forever mirror

⏳ Not in the free mirror yet — get it from deb.griffo.io (main)
Zig is not in the free mirror yet. The free mirror currently serves Ghostty and Zed, with more on the way. Get Zig from the main repository at deb.griffo.io — every release, within hours of upstream.
SourceVersion
deb.griffo.io (main)0.16.0 ✅
Official Debian🚫 not packaged
← Back to home

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 Staying Current Matters: 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.

🆓 Free forever, patched immediately: Debian and Ubuntu freeze package versions when a release ships; this free mirror instead serves the newest release once it is at least 2 months old, with security fixes published immediately. Want every release within hours instead? That's the main repository at deb.griffo.io.

📦 Installation from deb-free.griffo.io

Step 1: Add Repository

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

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-free.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 Debian 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

📦 Recent releases at deb.griffo.io (main)

❓ Frequently asked questions

Is Zig in the official Debian repositories?

No — Zig is not packaged in the official Debian archives. This free mirror serves the newest Zig release that is at least 2 months old; the main repository at deb.griffo.io serves every release within hours of upstream.

How do I install the latest Zig on Debian?

Add the deb-free.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 Debian releases are supported?

Debian 12 Bookworm, Debian 13 Trixie, Forky and Sid.