Ways to Install or Uninstall tfortune on Ubuntu 22.04

Updated: August 24, 2022

Like fortune(6), tfortune is a Unix command line utility which prints a random epigram. Epigrams are stored as plain text files, but they must be annotated with tags to make full use of the features which tfortune offers over other implementations. I will show you how to install tfortune on Ubuntu 22.04 in this guide.

Prerequisites to install

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install tfortune on Ubuntu 22.04

Install tfortune Ubuntu 22.04

tfortune is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install tfortune using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to install tfortune on your Ubuntu.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. You can now install tfortune Ubuntu by executing this command in the terminal.

sudo apt-get -y install tfortune

Install tfortune using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

Then, you can now install tfortune, just following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install tfortune Ubuntu by executing this command in the terminal.

sudo aptitude -y install tfortune

Uninstall tfortune on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a tfortune.

If you installed tfortune using APT or Aptitude, you could uninstall tfortune on Ubuntu by following this step:

sudo apt remove --auto-remove tfortune

To uninstall tfortune and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge tfortune

Ending

In this tutorial, I showed you ways to install tfortune on Ubuntu 22.04 and ways to uninstall tfortune too. Please contact me if you require any assistance. I’d be delighted to respond.