How To Install perl-IPC-System-Simple on CentOS 7

In this tutorial we learn how to install perl-IPC-System-Simple on CentOS 7. perl-IPC-System-Simple is Run commands simply, with detailed diagnostics

Introduction

In this tutorial we learn how to install perl-IPC-System-Simple on CentOS 7.

What is perl-IPC-System-Simple

Calling Perl’s in-built ‘system()’ function is easy; determining if it was successful is hard. Let’s face it, ‘$?’ isn’t the nicest variable in the world to play with, and even if you do check it, producing a well-formatted error string takes a lot of work. ‘IPC external commands. In fact, if you want to be really lazy, you can just write use IPC and all of your “system” commands will either succeed (run to completion and return a zero exit value), or die with rich diagnostic messages.

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

Install perl-IPC-System-Simple 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-IPC-System-Simple using yum by running the following command:

sudo yum -y install perl-IPC-System-Simple

Install perl-IPC-System-Simple 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-IPC-System-Simple using dnf by running the following command:

sudo dnf -y install perl-IPC-System-Simple

How To Uninstall perl-IPC-System-Simple on CentOS 7

To uninstall only the perl-IPC-System-Simple package we can use the following command:

sudo dnf remove perl-IPC-System-Simple

References

Summary

In this tutorial we learn how to install perl-IPC-System-Simple on CentOS 7 using yum and dnf.