How To Install git-p4.noarch on Amazon Linux 2

In this tutorial we learn how to install git-p4.noarch in Amazon Linux 2. git-p4.noarch is Git tools for working with Perforce depots

Introduction

In this tutorial we learn how to install git-p4.noarch on Amazon Linux 2.

What is git-p4.noarch

Git tools for working with Perforce depots.

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

Install git-p4.noarch 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-p4.noarch using yum by running the following command:

sudo yum -y install git-p4.noarch

How To Uninstall git-p4.noarch on Amazon Linux 2

To uninstall only the git-p4.noarch package we can use the following command:

sudo yum remove git-p4.noarch

git-p4.noarch Package Contents on Amazon Linux 2

/usr/libexec/git-core/git-p4
/usr/libexec/git-core/mergetools/p4merge
/usr/share/doc/git-2.32.0/git-p4.html
/usr/share/doc/git-2.32.0/git-p4.txt
/usr/share/man/man1/git-p4.1.gz

References

Summary

In this tutorial we learn how to install git-p4.noarch on Amazon Linux 2 using yum.