How To Install cpio on AlmaLinux 8
Introduction
In this tutorial we learn how to install cpio
on AlmaLinux 8.
What is cpio
GNU cpio copies files into or out of a cpio or tar archive. Archives are files which contain a collection of other files plus information about them, such as their file name, owner, timestamps, and access permissions. The archive can be another file on the disk, a magnetic tape, or a pipe. GNU cpio supports the following archive formats old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1 tar. By default, cpio creates binary format archives, so that they are compatible with older cpio programs. When it is extracting files from archives, cpio automatically recognizes which kind of archive it is reading and can read archives created on machines with a different byte-order. Install cpio if you need a program to manage file archives.
We can use yum
or dnf
to install cpio
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install cpio.
Install cpio on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install cpio
using dnf
by running the following command:
sudo dnf -y install cpio
Install cpio on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install cpio
using yum
by running the following command:
sudo yum -y install cpio
How To Uninstall cpio on AlmaLinux 8
To uninstall only the cpio
package we can use the following command:
sudo dnf remove cpio
References
Summary
In this tutorial we learn how to install cpio
on AlmaLinux 8 using yum and dnf.