How To Install libtar.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libtar.x86_64 in Amazon Linux 2. libtar.x86_64 is Tar file manipulation API

Introduction

In this tutorial we learn how to install libtar.x86_64 on Amazon Linux 2.

What is libtar.x86_64

libtar is a C library for manipulating tar archives. It supports both the strict POSIX tar format and many of the commonly-used GNU extensions.

We can use yum to install libtar.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libtar.x86_64.

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

sudo yum -y install libtar.x86_64

How To Uninstall libtar.x86_64 on Amazon Linux 2

To uninstall only the libtar.x86_64 package we can use the following command:

sudo yum remove libtar.x86_64

libtar.x86_64 Package Contents on Amazon Linux 2

/usr/bin/libtar
/usr/lib64/libtar.so.1
/usr/lib64/libtar.so.1.2.11
/usr/share/doc/libtar-1.2.11
/usr/share/doc/libtar-1.2.11/COPYRIGHT
/usr/share/doc/libtar-1.2.11/ChangeLog
/usr/share/doc/libtar-1.2.11/ChangeLog-1.0.x
/usr/share/doc/libtar-1.2.11/README
/usr/share/doc/libtar-1.2.11/TODO

References

Summary

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