How To Install nethack-common on Debian 11
Introduction
In this tutorial we learn how to install nethack-common
on Debian 11.
What is nethack-common
nethack-common is:
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.
You should install a front-end for NetHack if you wish to play the game. Each of them includes the original non-graphical version, and they can all be installed at the same time:
- nethack-console: no graphics, just plain NetHack;
- nethack-x11 : original X11/Athena-based graphical version;
- nethack-qt : Qt version.
The various graphical front-ends for NetHack all share a large number of files in common. This package contains the graphics, dungeon levels, and utilities common to all NetHack front-ends.
It also provides a few utilities such as recover, for retrieving auto-save files in case of a power failure, and dgn_comp and lev_comp, two utilities for making your own NetHack levels and dungeons. The “recover” utility will be run every time the system boots, if there are any auto-save files available.
There are three methods to install nethack-common
on Debian 11. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install nethack-common Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install nethack-common
using apt-get
by running the following command:
sudo apt-get -y install nethack-common
Install nethack-common Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nethack-common
using apt
by running the following command:
sudo apt -y install nethack-common
Install nethack-common Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install nethack-common
using aptitude
by running the following command:
sudo aptitude -y install nethack-common
How To Uninstall nethack-common on Debian 11
To uninstall only the nethack-common
package we can use the following command:
sudo apt-get remove nethack-common
Uninstall nethack-common And Its Dependencies
To uninstall nethack-common
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove nethack-common
Remove nethack-common Configurations and Data
To remove nethack-common
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge nethack-common
Remove nethack-common configuration, data, and all of its dependencies
We can use the following command to remove nethack-common
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nethack-common
Dependencies
nethack-common have the following dependencies:
References
Summary
In this tutorial we learn how to install nethack-common
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.