How To Install sharutils on CentOS 8

sharutils is The GNU shar utilities for packaging and unpackaging shell archives

Introduction

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

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 8. In this tutorial we discuss both methods but you only need to choose one of method to install sharutils.

Install sharutils on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install sharutils

Install sharutils on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install sharutils

How To Uninstall sharutils on CentOS 8

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

sudo dnf remove sharutils

sharutils Package Contents on CentOS 8

/usr/bin/shar
/usr/bin/unshar
/usr/bin/uudecode
/usr/bin/uuencode
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/c8a3b383b702e2e1da3af1ec8d3ea9fecc29e8
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/ec519aef201682f31907223cbd81d453d7ff26
/usr/lib/.build-id/88
/usr/lib/.build-id/88/60c3bc3f5197640bd293bb8d819d371c6088c4
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/6018af4689c22dcb352d0f8bc393ca1f7ee3df
/usr/share/doc/sharutils
/usr/share/doc/sharutils/AUTHORS
/usr/share/doc/sharutils/ChangeLog
/usr/share/doc/sharutils/NEWS
/usr/share/doc/sharutils/README
/usr/share/doc/sharutils/THANKS
/usr/share/doc/sharutils/TODO
/usr/share/info/sharutils.info.gz
/usr/share/licenses/sharutils
/usr/share/licenses/sharutils/COPYING
/usr/share/locale/bg/LC_MESSAGES/sharutils.mo
/usr/share/locale/ca/LC_MESSAGES/sharutils.mo
/usr/share/locale/cs/LC_MESSAGES/sharutils.mo
/usr/share/locale/da/LC_MESSAGES/sharutils.mo
/usr/share/locale/de/LC_MESSAGES/sharutils.mo
/usr/share/locale/el/LC_MESSAGES/sharutils.mo
/usr/share/locale/eo/LC_MESSAGES/sharutils.mo
/usr/share/locale/es/LC_MESSAGES/sharutils.mo
/usr/share/locale/et/LC_MESSAGES/sharutils.mo
/usr/share/locale/fi/LC_MESSAGES/sharutils.mo
/usr/share/locale/fr/LC_MESSAGES/sharutils.mo
/usr/share/locale/ga/LC_MESSAGES/sharutils.mo
/usr/share/locale/gl/LC_MESSAGES/sharutils.mo
/usr/share/locale/hu/LC_MESSAGES/sharutils.mo
/usr/share/locale/id/LC_MESSAGES/sharutils.mo
/usr/share/locale/it/LC_MESSAGES/sharutils.mo
/usr/share/locale/ja/LC_MESSAGES/sharutils.mo
/usr/share/locale/nl/LC_MESSAGES/sharutils.mo
/usr/share/locale/pl/LC_MESSAGES/sharutils.mo
/usr/share/locale/pt_BR/LC_MESSAGES/sharutils.mo
/usr/share/locale/ru/LC_MESSAGES/sharutils.mo
/usr/share/locale/sr/LC_MESSAGES/sharutils.mo
/usr/share/locale/sv/LC_MESSAGES/sharutils.mo
/usr/share/locale/tr/LC_MESSAGES/sharutils.mo
/usr/share/locale/uk/LC_MESSAGES/sharutils.mo
/usr/share/locale/vi/LC_MESSAGES/sharutils.mo
/usr/share/locale/zh_CN/LC_MESSAGES/sharutils.mo
/usr/share/locale/zh_TW/LC_MESSAGES/sharutils.mo
/usr/share/man/man1/shar.1.gz
/usr/share/man/man1/unshar.1.gz
/usr/share/man/man1/uudecode.1.gz
/usr/share/man/man1/uuencode.1.gz
/usr/share/man/man5/uuencode.5.gz

References

Summary

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