📣 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 Latest Zig on Ubuntu

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

← 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 Latest Versions Matter: Zig is rapidly evolving with significant performance improvements, new language features, and critical bug fixes in each release. The latest 0.15.2 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.

🆕 What's New in Zig 0.16.0

📦 Installation from debian.griffo.io

Step 1: Add Repository

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