How To Install libtar on Rocky Linux 8
Introduction
In this tutorial we learn how to install libtar
on Rocky Linux 8.
What is libtar
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
or dnf
to install libtar
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libtar.
Install libtar on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libtar
using dnf
by running the following command:
sudo dnf -y install libtar
Install libtar on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libtar
using yum
by running the following command:
sudo yum -y install libtar
How To Uninstall libtar on Rocky Linux 8
To uninstall only the libtar
package we can use the following command:
sudo dnf remove libtar
libtar Package Contents on Rocky Linux 8
/usr/bin/libtar
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/4302f55f1302ce620ab58ecaef9b8dcc41c4de
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/c1d375d412edde642624f89e5f8270d3e04038
/usr/lib64/libtar.so.1
/usr/lib64/libtar.so.1.2.20
/usr/share/doc/libtar
/usr/share/doc/libtar/COPYRIGHT
/usr/share/doc/libtar/ChangeLog
/usr/share/doc/libtar/ChangeLog-1.0.x
/usr/share/doc/libtar/README
/usr/share/doc/libtar/TODO
/usr/bin/libtar
/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/86760dae633534b355c5e44da34dbbefc217d9
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/a3b3f584510b72271e692bb3e7d5e7517442cc
/usr/lib/libtar.so.1
/usr/lib/libtar.so.1.2.20
/usr/share/doc/libtar
/usr/share/doc/libtar/COPYRIGHT
/usr/share/doc/libtar/ChangeLog
/usr/share/doc/libtar/ChangeLog-1.0.x
/usr/share/doc/libtar/README
/usr/share/doc/libtar/TODO
References
Summary
In this tutorial we learn how to install libtar
on Rocky Linux 8 using yum and dnf.