How To Install ghc-tar on CentOS 7

In this tutorial we learn how to install ghc-tar on CentOS 7. ghc-tar is Reading, writing and manipulating tar archive files

Introduction

In this tutorial we learn how to install ghc-tar on CentOS 7.

What is ghc-tar

This library is for working with “.tar” archive files. It can read and write a range of common variations of archive format including V7, USTAR, POSIX and GNU formats. It provides support for packing and unpacking portable archives. This makes it suitable for distribution but not backup because details like file ownership and exact permissions are not preserved.

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

Install ghc-tar on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ghc-tar using yum by running the following command:

sudo yum -y install ghc-tar

Install ghc-tar 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 ghc-tar using dnf by running the following command:

sudo dnf -y install ghc-tar

How To Uninstall ghc-tar on CentOS 7

To uninstall only the ghc-tar package we can use the following command:

sudo dnf remove ghc-tar

References

Summary

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