How To Install perl-DateTime-Format-Flexible on CentOS 7

In this tutorial we learn how to install perl-DateTime-Format-Flexible on CentOS 7. perl-DateTime-Format-Flexible is Flexibly parse strings and turn them into DateTime objects

Introduction

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

What is perl-DateTime-Format-Flexible

If you have ever had to use a program that made you type in the date a certain way and thought “Why can’t the computer just figure out what date I wanted?”, this module is for you. DateTime and parse it into a DateTime object.

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

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

sudo yum -y install perl-DateTime-Format-Flexible

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

sudo dnf -y install perl-DateTime-Format-Flexible

How To Uninstall perl-DateTime-Format-Flexible on CentOS 7

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

sudo dnf remove perl-DateTime-Format-Flexible

References

Summary

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