How To Install zig on Fedora 36

In this tutorial we learn how to install zig in Fedora 36. zig is Programming language for maintaining robust, optimal, and reusable software

Introduction

In this tutorial we learn how to install zig on Fedora 36.

What is zig

Zig is an open-source programming language designed for robustness, optimality, and clarity. This package provides the zig compiler and the associated runtime.

We can use yum or dnf to install zig on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install zig.

Install zig on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install zig using dnf by running the following command:

sudo dnf -y install zig

Install zig on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install zig using yum by running the following command:

sudo yum -y install zig

How To Uninstall zig on Fedora 36

To uninstall only the zig package we can use the following command:

sudo dnf remove zig

zig Package Contents on Fedora 36

/usr/bin/zig
/usr/lib/.build-id
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/ed35990e4453bd7030ac6ca6c2983af27cc328
/usr/share/licenses/zig
/usr/share/licenses/zig/LICENSE
/usr/share/man/man1/zig.1.gz

References

Summary

In this tutorial we learn how to install zig on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).