How To Install cpio on CentOS 8
Introduction
In this tutorial we learn how to install cpio
on CentOS 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. cpio 2.12 10.el8 x86_64 265 k cpio-2.12-10.el8.src.rpm baseos A GNU archiving program http GPLv3+ 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install cpio.
Install cpio on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install cpio
using dnf
by running the following command:
sudo dnf -y install cpio
Install cpio on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the cpio
package we can use the following command:
sudo dnf remove cpio
cpio Package Contents on CentOS 8
/usr/bin/cpio
/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/1c09818bae2973b09209e5b71f9d6f94a0180e
/usr/share/doc/cpio
/usr/share/doc/cpio/AUTHORS
/usr/share/doc/cpio/ChangeLog
/usr/share/doc/cpio/NEWS
/usr/share/doc/cpio/README
/usr/share/doc/cpio/THANKS
/usr/share/doc/cpio/TODO
/usr/share/info/cpio.info.gz
/usr/share/licenses/cpio
/usr/share/licenses/cpio/COPYING
/usr/share/locale/da/LC_MESSAGES/cpio.mo
/usr/share/locale/de/LC_MESSAGES/cpio.mo
/usr/share/locale/es/LC_MESSAGES/cpio.mo
/usr/share/locale/fi/LC_MESSAGES/cpio.mo
/usr/share/locale/fr/LC_MESSAGES/cpio.mo
/usr/share/locale/ga/LC_MESSAGES/cpio.mo
/usr/share/locale/gl/LC_MESSAGES/cpio.mo
/usr/share/locale/hr/LC_MESSAGES/cpio.mo
/usr/share/locale/hu/LC_MESSAGES/cpio.mo
/usr/share/locale/id/LC_MESSAGES/cpio.mo
/usr/share/locale/it/LC_MESSAGES/cpio.mo
/usr/share/locale/ja/LC_MESSAGES/cpio.mo
/usr/share/locale/ko/LC_MESSAGES/cpio.mo
/usr/share/locale/nl/LC_MESSAGES/cpio.mo
/usr/share/locale/pl/LC_MESSAGES/cpio.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cpio.mo
/usr/share/locale/ro/LC_MESSAGES/cpio.mo
/usr/share/locale/ru/LC_MESSAGES/cpio.mo
/usr/share/locale/sr/LC_MESSAGES/cpio.mo
/usr/share/locale/sv/LC_MESSAGES/cpio.mo
/usr/share/locale/tr/LC_MESSAGES/cpio.mo
/usr/share/locale/uk/LC_MESSAGES/cpio.mo
/usr/share/locale/vi/LC_MESSAGES/cpio.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cpio.mo
/usr/share/locale/zh_TW/LC_MESSAGES/cpio.mo
/usr/share/man/man1/cpio.1.gz
References
- [cpio website](http://www.gnu.org/software/cpio/ http://www.gnu.org/software/cpio/)
Summary
In this tutorial we learn how to install cpio
on CentOS 8 using yum and dnf.