How To Install git-clang-format.x86_64 on Amazon Linux 2

In this tutorial we learn how to install git-clang-format.x86_64 in Amazon Linux 2. git-clang-format.x86_64 is Integration of clang-format for git

Introduction

In this tutorial we learn how to install git-clang-format.x86_64 on Amazon Linux 2.

What is git-clang-format.x86_64

clang-format integration for git.

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

Install git-clang-format.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 git-clang-format.x86_64 using yum by running the following command:

sudo yum -y install git-clang-format.x86_64

How To Uninstall git-clang-format.x86_64 on Amazon Linux 2

To uninstall only the git-clang-format.x86_64 package we can use the following command:

sudo yum remove git-clang-format.x86_64

git-clang-format.x86_64 Package Contents on Amazon Linux 2

/usr/bin/git-clang-format

References

Summary

In this tutorial we learn how to install git-clang-format.x86_64 on Amazon Linux 2 using yum.