How To Install fortune-mod on CentOS 8

fortune-mod is A program which will display a fortune

Introduction

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

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 8. 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 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install fortune-mod

Install fortune-mod on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install fortune-mod

How To Uninstall fortune-mod on CentOS 8

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

sudo dnf remove fortune-mod

fortune-mod Package Contents on CentOS 8

/usr/bin/fortune
/usr/bin/strfile
/usr/bin/unstr
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/6d2009d5abb64d45de785bccd7cd3b4287104c
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/8b06e5203a89a245f1224b53d55c8fa4c21dde
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/bcfb2f5873b94c423c4bd05163dc776d9b9143
/usr/share/doc/fortune-mod
/usr/share/doc/fortune-mod/ChangeLog
/usr/share/doc/fortune-mod/README
/usr/share/doc/fortune-mod/TODO
/usr/share/games/fortune
/usr/share/games/fortune/art
/usr/share/games/fortune/art.dat
/usr/share/games/fortune/art.u8
/usr/share/games/fortune/ascii-art
/usr/share/games/fortune/ascii-art.dat
/usr/share/games/fortune/ascii-art.u8
/usr/share/games/fortune/bofh-excuses
/usr/share/games/fortune/bofh-excuses.dat
/usr/share/games/fortune/computers
/usr/share/games/fortune/computers.dat
/usr/share/games/fortune/computers.u8
/usr/share/games/fortune/cookie
/usr/share/games/fortune/cookie.dat
/usr/share/games/fortune/cookie.u8
/usr/share/games/fortune/definitions
/usr/share/games/fortune/definitions.dat
/usr/share/games/fortune/definitions.u8
/usr/share/games/fortune/disclaimer
/usr/share/games/fortune/disclaimer.dat
/usr/share/games/fortune/disclaimer.u8
/usr/share/games/fortune/drugs
/usr/share/games/fortune/drugs.dat
/usr/share/games/fortune/drugs.u8
/usr/share/games/fortune/education
/usr/share/games/fortune/education.dat
/usr/share/games/fortune/education.u8
/usr/share/games/fortune/ethnic
/usr/share/games/fortune/ethnic.dat
/usr/share/games/fortune/ethnic.u8
/usr/share/games/fortune/food
/usr/share/games/fortune/food.dat
/usr/share/games/fortune/food.u8
/usr/share/games/fortune/fortunes
/usr/share/games/fortune/fortunes.dat
/usr/share/games/fortune/fortunes.u8
/usr/share/games/fortune/goedel
/usr/share/games/fortune/goedel.dat
/usr/share/games/fortune/goedel.u8
/usr/share/games/fortune/hitchhiker
/usr/share/games/fortune/hitchhiker.dat
/usr/share/games/fortune/humorists
/usr/share/games/fortune/humorists.dat
/usr/share/games/fortune/humorists.u8
/usr/share/games/fortune/humorix-misc
/usr/share/games/fortune/humorix-misc.dat
/usr/share/games/fortune/humorix-stories
/usr/share/games/fortune/humorix-stories.dat
/usr/share/games/fortune/kernelnewbies
/usr/share/games/fortune/kernelnewbies.dat
/usr/share/games/fortune/kids
/usr/share/games/fortune/kids.dat
/usr/share/games/fortune/kids.u8
/usr/share/games/fortune/knghtbrd
/usr/share/games/fortune/knghtbrd.dat
/usr/share/games/fortune/knghtbrd.u8
/usr/share/games/fortune/law
/usr/share/games/fortune/law.dat
/usr/share/games/fortune/law.u8
/usr/share/games/fortune/linux
/usr/share/games/fortune/linux.dat
/usr/share/games/fortune/linux.u8
/usr/share/games/fortune/linuxcookie
/usr/share/games/fortune/linuxcookie.dat
/usr/share/games/fortune/linuxcookie.u8
/usr/share/games/fortune/literature
/usr/share/games/fortune/literature.dat
/usr/share/games/fortune/literature.u8
/usr/share/games/fortune/love
/usr/share/games/fortune/love.dat
/usr/share/games/fortune/love.u8
/usr/share/games/fortune/magic
/usr/share/games/fortune/magic.dat
/usr/share/games/fortune/magic.u8
/usr/share/games/fortune/medicine
/usr/share/games/fortune/medicine.dat
/usr/share/games/fortune/medicine.u8
/usr/share/games/fortune/miscellaneous
/usr/share/games/fortune/miscellaneous.dat
/usr/share/games/fortune/miscellaneous.u8
/usr/share/games/fortune/news
/usr/share/games/fortune/news.dat
/usr/share/games/fortune/news.u8
/usr/share/games/fortune/osfortune
/usr/share/games/fortune/osfortune.dat
/usr/share/games/fortune/paradoxum
/usr/share/games/fortune/paradoxum.dat
/usr/share/games/fortune/paradoxum.u8
/usr/share/games/fortune/people
/usr/share/games/fortune/people.dat
/usr/share/games/fortune/people.u8
/usr/share/games/fortune/perl
/usr/share/games/fortune/perl.dat
/usr/share/games/fortune/perl.u8
/usr/share/games/fortune/pets
/usr/share/games/fortune/pets.dat
/usr/share/games/fortune/pets.u8
/usr/share/games/fortune/platitudes
/usr/share/games/fortune/platitudes.dat
/usr/share/games/fortune/platitudes.u8
/usr/share/games/fortune/politics
/usr/share/games/fortune/politics.dat
/usr/share/games/fortune/politics.u8
/usr/share/games/fortune/pratchett
/usr/share/games/fortune/pratchett.dat
/usr/share/games/fortune/pratchett.u8
/usr/share/games/fortune/riddles
/usr/share/games/fortune/riddles.dat
/usr/share/games/fortune/riddles.u8
/usr/share/games/fortune/science
/usr/share/games/fortune/science.dat
/usr/share/games/fortune/science.u8
/usr/share/games/fortune/songs-poems
/usr/share/games/fortune/songs-poems.dat
/usr/share/games/fortune/songs-poems.u8
/usr/share/games/fortune/sports
/usr/share/games/fortune/sports.dat
/usr/share/games/fortune/sports.u8
/usr/share/games/fortune/startrek
/usr/share/games/fortune/startrek.dat
/usr/share/games/fortune/startrek.u8
/usr/share/games/fortune/tao
/usr/share/games/fortune/tao.dat
/usr/share/games/fortune/tao.u8
/usr/share/games/fortune/translate-me
/usr/share/games/fortune/translate-me.dat
/usr/share/games/fortune/translate-me.u8
/usr/share/games/fortune/wisdom
/usr/share/games/fortune/wisdom.dat
/usr/share/games/fortune/wisdom.u8
/usr/share/games/fortune/work
/usr/share/games/fortune/work.dat
/usr/share/games/fortune/work.u8
/usr/share/games/fortune/zippy
/usr/share/games/fortune/zippy.dat
/usr/share/games/fortune/zippy.u8
/usr/share/licenses/fortune-mod
/usr/share/licenses/fortune-mod/COPYING.txt
/usr/share/man/man1/strfile.1.gz
/usr/share/man/man6/fortune.6.gz

References

Summary

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