How To Install libarchive on Fedora 34
Introduction
In this tutorial we learn how to install libarchive
on Fedora 34.
What is libarchive
Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar variants, several cpio formats, and both BSD and GNU ar variants. It can also write shar archives and read ISO9660 CDROM images and ZIP archives. libarchive 3.5.1 2.fc34 i686 439 k libarchive-3.5.1-2.fc34.src.rpm fedora A library for handling streaming archive formats https BSD Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar variants, several cpio formats, and both BSD and GNU ar variants. It can also write shar archives and read ISO9660 CDROM images and ZIP archives.
We can use yum
or dnf
to install libarchive
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libarchive.
Install libarchive 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 libarchive
using dnf
by running the following command:
sudo dnf -y install libarchive
Install libarchive 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 libarchive
using yum
by running the following command:
sudo yum -y install libarchive
How To Uninstall libarchive on Fedora 34
To uninstall only the libarchive
package we can use the following command:
sudo dnf remove libarchive
libarchive Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/73
/usr/lib/.build-id/73/aae73871592989ea3d35399d6d0df5c69a10ec
/usr/lib/libarchive.so.13
/usr/lib/libarchive.so.13.5.1
/usr/share/doc/libarchive
/usr/share/doc/libarchive/NEWS
/usr/share/doc/libarchive/README.md
/usr/share/licenses/libarchive
/usr/share/licenses/libarchive/COPYING
/usr/share/man/man5/cpio.5.gz
/usr/share/man/man5/mtree.5.gz
/usr/share/man/man5/tar.5.gz
/usr/lib/.build-id
/usr/lib/.build-id/78
/usr/lib/.build-id/78/84bc0c2db3553adf4915f1b586ee7c60441286
/usr/lib64/libarchive.so.13
/usr/lib64/libarchive.so.13.5.1
/usr/share/doc/libarchive
/usr/share/doc/libarchive/NEWS
/usr/share/doc/libarchive/README.md
/usr/share/licenses/libarchive
/usr/share/licenses/libarchive/COPYING
/usr/share/man/man5/cpio.5.gz
/usr/share/man/man5/mtree.5.gz
/usr/share/man/man5/tar.5.gz
References
- [libarchive website](https://www.libarchive.org/ https://www.libarchive.org/)
Summary
In this tutorial we learn how to install libarchive
on Fedora 34 using yum and dnf.