How To Install nethack on Fedora 34
Introduction
In this tutorial we learn how to install nethack
on Fedora 34.
What is nethack
NetHack is a single player dungeon exploration game that runs on a wide variety of computer systems, with a variety of graphical and text interfaces all using the same game engine. Unlike many other Dungeons & Dragons-inspired games, the emphasis in NetHack is on discovering the detail of the dungeon and not simply killing everything in sight - in fact, killing everything in sight is a good way to die quickly. Each game presents a different landscape - the random number generator provides an essentially unlimited number of variations of the dungeon and its denizens to be discovered by the player in one of a number of characters
We can use yum
or dnf
to install nethack
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install nethack.
Install nethack on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install nethack
using dnf
by running the following command:
sudo dnf -y install nethack
Install nethack on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install nethack
using yum
by running the following command:
sudo yum -y install nethack
How To Uninstall nethack on Fedora 34
To uninstall only the nethack
package we can use the following command:
sudo dnf remove nethack
nethack Package Contents on Fedora 34
/usr/bin/nethack
/usr/games/nethack
/usr/games/nethack/NetHack.ad
/usr/games/nethack/license
/usr/games/nethack/nethack
/usr/games/nethack/nhdat
/usr/games/nethack/pet_mark.xbm
/usr/games/nethack/pilemark.xbm
/usr/games/nethack/recover
/usr/games/nethack/rip.xpm
/usr/games/nethack/symbols
/usr/games/nethack/sysconf
/usr/games/nethack/x11tiles
/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/40c66d45c95e60f250f239284d08a6b9ef259f
/usr/lib/.build-id/33
/usr/lib/.build-id/33/0a56211e3052ceb04c035ec867e20d77beb4fc
/usr/share/applications/nethack.desktop
/usr/share/doc/nethack
/usr/share/doc/nethack/Guidebook.txt
/usr/share/doc/nethack/README
/usr/share/doc/nethack/dgn_comp.txt
/usr/share/doc/nethack/dlb.txt
/usr/share/doc/nethack/history
/usr/share/doc/nethack/lev_comp.txt
/usr/share/doc/nethack/license
/usr/share/doc/nethack/makedefs.txt
/usr/share/doc/nethack/mn.txt
/usr/share/doc/nethack/mnh.txt
/usr/share/doc/nethack/nethack.txt
/usr/share/doc/nethack/opthelp
/usr/share/doc/nethack/recover.txt
/usr/share/doc/nethack/wizhelp
/usr/share/man/man6/dgn_comp.6.gz
/usr/share/man/man6/dlb.6.gz
/usr/share/man/man6/lev_comp.6.gz
/usr/share/man/man6/makedefs.6.gz
/usr/share/man/man6/nethack.6.gz
/usr/share/man/man6/recover.6.gz
/usr/share/pixmaps/nethack.xpm
/var/games/nethack
/var/games/nethack/logfile
/var/games/nethack/perm
/var/games/nethack/record
/var/games/nethack/save
/var/games/nethack/xlogfile
References
Summary
In this tutorial we learn how to install nethack
on Fedora 34 using yum and dnf.