How To Install texlive-datetime on CentOS 7

In this tutorial we learn how to install texlive-datetime on CentOS 7. texlive-datetime is Change format of \today with commands for current time

Introduction

In this tutorial we learn how to install texlive-datetime on CentOS 7.

What is texlive-datetime

Provides various different formats for the text created by the command \today, and also provides commands for displaying the current time (or any given time), in 12-hour, 24-hour or text format. The package overrides babel’s date format, having its own library of date formats in different languages. The package requires the fmtcount package. date

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

Install texlive-datetime on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install texlive-datetime using yum by running the following command:

sudo yum -y install texlive-datetime

Install texlive-datetime 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 texlive-datetime using dnf by running the following command:

sudo dnf -y install texlive-datetime

How To Uninstall texlive-datetime on CentOS 7

To uninstall only the texlive-datetime package we can use the following command:

sudo dnf remove texlive-datetime

References

Summary

In this tutorial we learn how to install texlive-datetime on CentOS 7 using yum and dnf.