How To Install python-libarchive on CentOS 7
Introduction
In this tutorial we learn how to install python-libarchive
on CentOS 7.
What is python-libarchive
Fully functional Python wrapper for libarchive. Created using SWIG. The low-level API provides access to all of the functionality of libarchive. The package also includes a high level python library which mimics the zipfile and tarfile modules. Libarchive supports the following - Reads a variety of formats, including tar, pax, cpio, zip, xar, lha, ar, cab, mtree, rar, and ISO images. - Writes tar, pax, cpio, zip, xar, ar, ISO, mtree, and shar archives. - Automatically handles archives compressed with gzip, bzip2, lzip, xz, lzma, or compress.
We can use yum
or dnf
to install python-libarchive
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-libarchive.
Install python-libarchive on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-libarchive
using yum
by running the following command:
Install python-libarchive on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install python-libarchive
using dnf
by running the following command:
How To Uninstall python-libarchive on CentOS 7
To uninstall only the python-libarchive
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-libarchive
on CentOS 7 using yum
and dnf
.