How To Install perl-Directory-Scratch on CentOS 7
Introduction
In this tutorial we learn how to install perl-Directory-Scratch
on CentOS 7.
What is perl-Directory-Scratch
When writing test suites for modules that operate on files, it’s often inconvenient to correctly create a platform-independent temporary storage space, manipulate files inside it, then clean it up when the test exits. The inconvenience usually results in tests that don’t work everwhere, or worse, no tests at all. This module aims to eliminate that problem by making it easy to do things right.
We can use yum
or dnf
to install perl-Directory-Scratch
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Directory-Scratch.
Install perl-Directory-Scratch on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install perl-Directory-Scratch
using yum
by running the following command:
sudo yum -y install perl-Directory-Scratch
Install perl-Directory-Scratch 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 perl-Directory-Scratch
using dnf
by running the following command:
sudo dnf -y install perl-Directory-Scratch
How To Uninstall perl-Directory-Scratch on CentOS 7
To uninstall only the perl-Directory-Scratch
package we can use the following command:
sudo dnf remove perl-Directory-Scratch
References
Summary
In this tutorial we learn how to install perl-Directory-Scratch
on CentOS 7 using yum
and dnf
.