How To Install sharutils on CentOS 7

In this tutorial we learn how to install sharutils on CentOS 7. sharutils is The GNU shar utilities for packaging and unpackaging shell

Introduction

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

What is sharutils

The sharutils package contains the GNU shar utilities, a set of tools for encoding and decoding packages of files (in binary or text format) in a special plain text format called shell archives (shar). This format can be sent through e-mail (which can be problematic for regular binary files). The shar utility supports a wide range of capabilities (compressing, uuencoding, splitting long files for multi-part mailings, providing check-sums), which make it very flexible at creating shar files. After the files have been sent, the unshar tool scans mail messages looking for shar files. Unshar automatically strips off mail headers and introductory text and then unpacks the shar files.

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

Install sharutils on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install sharutils

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

sudo dnf -y install sharutils

How To Uninstall sharutils on CentOS 7

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

sudo dnf remove sharutils

References

Summary

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