How To Install cpio on Fedora 34
Introduction
In this tutorial we learn how to install cpio
on Fedora 34.
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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install cpio.
Install cpio 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 cpio
using dnf
by running the following command:
sudo dnf -y install cpio
Install cpio 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 cpio
using yum
by running the following command:
sudo yum -y install cpio
How To Uninstall cpio on Fedora 34
To uninstall only the cpio
package we can use the following command:
sudo dnf remove cpio
cpio Package Contents on Fedora 34
/usr/bin/cpio
/usr/lib/.build-id
/usr/lib/.build-id/43
/usr/lib/.build-id/43/679c5193c7cd0b262c3f8e6794c14f6376453d
/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/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
Summary
In this tutorial we learn how to install cpio
on Fedora 34 using yum and dnf.