How To Install ninja-build on Rocky Linux 8

In this tutorial we learn how to install ninja-build on Rocky Linux 8. ninja-build is A small build system with a focus on speed

Introduction

In this tutorial we learn how to install ninja-build on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ninja-build.

Install ninja-build on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8

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

sudo dnf remove ninja-build

ninja-build Package Contents on Rocky Linux 8

/usr/bin/ninja
/usr/bin/ninja-build
/usr/lib/.build-id
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/81461dc19d3c3748e719d65ab7031a4e452f39
/usr/lib/rpm/macros.d/macros.ninja
/usr/share/bash-completion/completions/ninja
/usr/share/doc/ninja-build
/usr/share/doc/ninja-build/HACKING.md
/usr/share/doc/ninja-build/README
/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 Rocky Linux 8 using yum and dnf.