How To Install fortune-mod on CentOS 7

In this tutorial we learn how to install fortune-mod on CentOS 7. fortune-mod is A program which will display a fortune

Introduction

In this tutorial we learn how to install fortune-mod on CentOS 7.

What is fortune-mod

Fortune-mod contains the ever-popular fortune program, which will display quotes or witticisms. Fun-loving system administrators can add fortune to users’ .login files, so that the users get their dose of wisdom each time they log in.

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

Install fortune-mod on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install fortune-mod

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

sudo dnf -y install fortune-mod

How To Uninstall fortune-mod on CentOS 7

To uninstall only the fortune-mod package we can use the following command:

sudo dnf remove fortune-mod

References

Summary

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