Ways to Uninstall and Install nethack-common Ubuntu 22.04

Updated: August 22, 2022

NetHack is a wonderfully silly, yet quite addictive, Dungeons & Dragons-style adventure game. You play a character from one of many classes (such as wizard, ranger, or tourist), fighting your way down to retrieve the Amulet of Yendor (try saying THAT one backwards!) for your god. On the way, you might encounter a quantum mechanic or two, or perhaps King Arthur, or - if you’re REALLY lucky - the Ravenous Bugblatter Beast of Traal. In this tutorial, I will show you ways to install nethack-common Ubuntu 22.04.


  • OS: Ubuntu 22.04 is needed for nethack-common to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install nethack-common on Ubuntu 22.04

Install nethack-common Ubuntu 22.04

nethack-common 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 nethack-common 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 steps to get nethack-common on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install nethack-common Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt install nethack-common

Install nethack-common 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 nethack-common by following these steps:

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. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install nethack-common Ubuntu by executing this command in the terminal.

sudo aptitude -y install nethack-common

Uninstall nethack-common on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just nethack-common.

If you installed nethack-common using APT or Aptitude, you could uninstall nethack-common on Ubuntu by executing this command

sudo apt remove --auto-remove nethack-common

If you want to uninstall nethack-common and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge nethack-common


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