How To Install scpio on CentOS 7

In this tutorial we learn how to install scpio on CentOS 7. scpio is Copy file archives in and out (LEGACY)

Introduction

In this tutorial we learn how to install scpio on CentOS 7.

What is scpio

The scpio utility, depending on the options used an archive file, extracts files from an archive file, lists files from an archive file or copies files from one directory tree to another.

We can use yum or dnf to install scpio on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install scpio.

Install scpio on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install scpio using yum by running the following command:

sudo yum -y install scpio

Install scpio 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.

sudo dnf makecache

After updating yum database, We can install scpio using dnf by running the following command:

sudo dnf -y install scpio

How To Uninstall scpio on CentOS 7

To uninstall only the scpio package we can use the following command:

sudo dnf remove scpio

References

Summary

In this tutorial we learn how to install scpio on CentOS 7 using yum and dnf.