How To Install libtar on Fedora 34
Introduction
In this tutorial we learn how to install libtar
on Fedora 34.
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. libtar 1.2.20 21.fc34 x86_64 38 k libtar-1.2.20-21.fc34.src.rpm fedora Tar file manipulation API http MIT 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libtar.
Install libtar on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libtar
using dnf
by running the following command:
sudo dnf -y install libtar
Install libtar on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 Fedora 34
To uninstall only the libtar
package we can use the following command:
sudo dnf remove libtar
libtar Package Contents on Fedora 34
/usr/bin/libtar
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/f31b73b63f8931855e6c1a2e0463dd20866600
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/979ebdf58fd431cccb02be9707421d15021ce6
/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
/usr/bin/libtar
/usr/lib/.build-id
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/eeef2b9226cab3bd5e099ce9b1f038f0d39dd4
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/e9851f69eca41b952d9fab1428796aa2624378
/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
References
- [libtar website](http://repo.or.cz/libtar.git http://repo.or.cz/libtar.git)
Summary
In this tutorial we learn how to install libtar
on Fedora 34 using yum and dnf.