How To Install perl-File-Inplace on CentOS 7
Introduction
In this tutorial we learn how to install perl-File-Inplace
on CentOS 7.
What is perl-File-Inplace
File editing a file in-place. Inspired by variations of perl’s -i option, this module is intended for somewhat more structured and reusable editing than command line perl typically allows. File either all of the changes made will be saved to the file, or none will. It also offers functionality such as backup creation, automatic field splitting per-line, automatic chomping/unchomping, and aborting edits partially through without affecting the original file.
We can use yum
or dnf
to install perl-File-Inplace
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-File-Inplace.
Install perl-File-Inplace 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-File-Inplace
using yum
by running the following command:
sudo yum -y install perl-File-Inplace
Install perl-File-Inplace 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-File-Inplace
using dnf
by running the following command:
sudo dnf -y install perl-File-Inplace
How To Uninstall perl-File-Inplace on CentOS 7
To uninstall only the perl-File-Inplace
package we can use the following command:
sudo dnf remove perl-File-Inplace
References
Summary
In this tutorial we learn how to install perl-File-Inplace
on CentOS 7 using yum
and dnf
.