How To Install stgit on CentOS 7

In this tutorial we learn how to install stgit on CentOS 7. stgit is Patch stack for Git repositories

Introduction

In this tutorial we learn how to install stgit on CentOS 7.

What is stgit

StGit is a Python application providing similar functionality to Quilt (i.e. pushing/popping patches to/from a stack) on top of Git. These operations are performed using Git commands and the patches are stored as Git commit objects, allowing easy merging of the StGit patches into other repositories using standard Git functionality. Note that StGit is not an SCM interface on top of Git and it expects a previously initialized Git repository. For standard SCM operations, either use plain Git commands or the Cogito tool.

We can use yum or dnf to install stgit on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install stgit.

Install stgit on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install stgit using yum by running the following command:

sudo yum -y install stgit

Install stgit on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install stgit using dnf by running the following command:

sudo dnf -y install stgit

How To Uninstall stgit on CentOS 7

To uninstall only the stgit package we can use the following command:

sudo dnf remove stgit

References

Summary

In this tutorial we learn how to install stgit on CentOS 7 using yum and dnf.