How To Install ninja-build.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ninja-build.x86_64 in Amazon Linux 2. ninja-build.x86_64 is A small build system with a focus on speed

Introduction

In this tutorial we learn how to install ninja-build.x86_64 on Amazon Linux 2.

What is ninja-build.x86_64

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

We can use yum to install ninja-build.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ninja-build.x86_64.

Install ninja-build.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ninja-build.x86_64 using yum by running the following command:

sudo yum -y install ninja-build.x86_64

How To Uninstall ninja-build.x86_64 on Amazon Linux 2

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

sudo yum remove ninja-build.x86_64

ninja-build.x86_64 Package Contents on Amazon Linux 2

/usr/bin/ninja-build
/usr/lib/rpm/macros.d/macros.ninja
/usr/share/bash-completion/completions/ninja-build
/usr/share/doc/ninja-build-1.7.2
/usr/share/doc/ninja-build-1.7.2/HACKING.md
/usr/share/doc/ninja-build-1.7.2/README
/usr/share/doc/ninja-build-1.7.2/manual.html
/usr/share/emacs/site-lisp/ninja-mode.el
/usr/share/licenses/ninja-build-1.7.2
/usr/share/licenses/ninja-build-1.7.2/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.x86_64 on Amazon Linux 2 using yum.