How To Install perl-String-Format on CentOS 7

In this tutorial we learn how to install perl-String-Format on CentOS 7. perl-String-Format is Sprintf-like string formatting capabilities with arbitrary format

Introduction

In this tutorial we learn how to install perl-String-Format on CentOS 7.

What is perl-String-Format

String sequences to be expanded. This module would be most useful in configuration files and reporting tools, where the results of a query need to be formatted in a particular way.

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

Install perl-String-Format 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-String-Format using yum by running the following command:

sudo yum -y install perl-String-Format

Install perl-String-Format 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-String-Format using dnf by running the following command:

sudo dnf -y install perl-String-Format

How To Uninstall perl-String-Format on CentOS 7

To uninstall only the perl-String-Format package we can use the following command:

sudo dnf remove perl-String-Format

References

Summary

In this tutorial we learn how to install perl-String-Format on CentOS 7 using yum and dnf.