How To Install ninja-build on Fedora 36

In this tutorial we learn how to install ninja-build in Fedora 36. ninja-build is Small build system with a focus on speed

Introduction

In this tutorial we learn how to install ninja-build on Fedora 36.

What is ninja-build

Ninja is a small build system with a focus on speed. It differs from other build systems in two major respects generated by a higher-level build system, and it is designed to run builds as fast as possible.

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

Install ninja-build 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 ninja-build using dnf by running the following command:

sudo dnf -y install ninja-build

Install ninja-build 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 ninja-build using yum by running the following command:

sudo yum -y install ninja-build

How To Uninstall ninja-build on Fedora 36

To uninstall only the ninja-build package we can use the following command:

sudo dnf remove ninja-build

ninja-build Package Contents on Fedora 36

/usr/bin/ninja
/usr/bin/ninja-build
/usr/lib/.build-id
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/2c0c3b56e1728ef4f9b164c8b134774b6d04a4
/usr/lib/python3.10/site-packages/__pycache__/ninja_syntax.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/ninja_syntax.cpython-310.pyc
/usr/lib/python3.10/site-packages/ninja_syntax.py
/usr/lib/rpm/macros.d/macros.ninja
/usr/share/bash-completion/completions/ninja
/usr/share/doc/ninja-build
/usr/share/doc/ninja-build/README.md
/usr/share/doc/ninja-build/manual.html
/usr/share/emacs/site-lisp/ninja-mode.el
/usr/share/licenses/ninja-build
/usr/share/licenses/ninja-build/COPYING
/usr/share/vim/vimfiles/ftdetect/ninja.vim
/usr/share/vim/vimfiles/syntax/ninja.vim
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_ninja

References

Summary

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