How To Install git-subtree.x86_64 on Amazon Linux 2

In this tutorial we learn how to install git-subtree.x86_64 in Amazon Linux 2. git-subtree.x86_64 is Git tools to merge and split repositories

Introduction

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

What is git-subtree.x86_64

Git subtrees allow subprojects to be included within a subdirectory of the main project, optionally including the subproject’s entire history.

We can use yum to install git-subtree.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-subtree.x86_64.

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

sudo yum -y install git-subtree.x86_64

How To Uninstall git-subtree.x86_64 on Amazon Linux 2

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

sudo yum remove git-subtree.x86_64

git-subtree.x86_64 Package Contents on Amazon Linux 2

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

References

Summary

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