How to Uninstall and Install mah-jong on Ubuntu 22.04

Updated: August 22, 2022

This is a set of programs to play the original Mah-Jong game: one server, one client for a human player and one client for an AI player. Hence the game can be played by 1 to 4 human players. In this tutorial, I will show you ways to install mah-jong Ubuntu 22.04.

Software Requirement

  • OS: mah-jong needs Ubuntu 22.04 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install mah-jong on Ubuntu 22.04

Install mah-jong Ubuntu 22.04

mah-jong is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install mah-jong using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get mah-jong on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install mah-jong Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get -y install mah-jong

Install mah-jong using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt-get install aptitude

After that, you can now install mah-jong, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install mah-jong Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install mah-jong

Uninstall mah-jong on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

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

sudo apt remove --auto-remove mah-jong

You can also execute this command if you want to uninstall mah-jong and remove its data and dependencies:

sudo apt autoremove --purge mah-jong

Summary

In this guide, I showed you ways to install mah-jong on Ubuntu 22.04 and ways to uninstall mah-jong too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.