How To Install dosbox on Fedora 34

dosbox is x86/DOS emulator with sound and graphics

Introduction

In this tutorial we learn how to install dosbox on Fedora 34.

What is dosbox

DOSBox is a DOS-emulator using SDL for easy portability to different platforms. DOSBox has already been ported to several different platforms, such as Windows, BeOS, Linux, Mac OS X… DOSBox emulates a 286/386 realmode CPU, Directory FileSystem/XMS/EMS, a SoundBlaster card for excellent sound compatibility with older games… You can “re-live” the good old days with the help of DOSBox, it can run plenty of the old classics that don’t run on your new computer!

We can use yum or dnf to install dosbox on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install dosbox.

Install dosbox 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 dosbox using dnf by running the following command:

sudo dnf -y install dosbox

Install dosbox 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 dosbox using yum by running the following command:

sudo yum -y install dosbox

How To Uninstall dosbox on Fedora 34

To uninstall only the dosbox package we can use the following command:

sudo dnf remove dosbox

dosbox Package Contents on Fedora 34

/usr/bin/dosbox
/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/b55c9a51327e47b904f90a26188d4f22d9543a
/usr/share/applications/dosbox.desktop
/usr/share/doc/dosbox
/usr/share/doc/dosbox/AUTHORS
/usr/share/doc/dosbox/COPYING
/usr/share/doc/dosbox/ChangeLog
/usr/share/doc/dosbox/NEWS
/usr/share/doc/dosbox/README
/usr/share/doc/dosbox/THANKS
/usr/share/dosbox
/usr/share/dosbox/translations
/usr/share/dosbox/translations/da
/usr/share/dosbox/translations/da/!Hvordan.txt
/usr/share/dosbox/translations/da/DOSBox 0.74-DK Manual.txt
/usr/share/dosbox/translations/da/README-DK.txt
/usr/share/dosbox/translations/da/README-zmbv.DK.txt
/usr/share/dosbox/translations/da/Video Instructions-DK.txt
/usr/share/dosbox/translations/da/dosbox-ENG.0.74.exe.lnk
/usr/share/dosbox/translations/da/dosbox.conf
/usr/share/dosbox/translations/da/dosbox.conf.eng.0.74
/usr/share/dosbox/translations/da/lng.0.74.DK
/usr/share/dosbox/translations/de
/usr/share/dosbox/translations/de/README_de.txt
/usr/share/dosbox/translations/de/deutsch.txt
/usr/share/dosbox/translations/de/dosbox-0.74.conf
/usr/share/dosbox/translations/de/german-0.74.lang
/usr/share/dosbox/translations/es
/usr/share/dosbox/translations/es/GRACIAS.txt
/usr/share/dosbox/translations/es/MANUAL.txt
/usr/share/dosbox/translations/es/Video.txt
/usr/share/dosbox/translations/es/dosbox-0.74.conf
/usr/share/dosbox/translations/es/spanish-0.74.lang
/usr/share/dosbox/translations/fr
/usr/share/dosbox/translations/fr/LISEZ_MOI.txt
/usr/share/dosbox/translations/fr/dosbox-0.74.conf
/usr/share/dosbox/translations/fr/francais074.lng
/usr/share/dosbox/translations/it
/usr/share/dosbox/translations/it/AUTHORS.txt
/usr/share/dosbox/translations/it/COPYING.txt
/usr/share/dosbox/translations/it/DOSBox 0.74 Manual ITA.txt
/usr/share/dosbox/translations/it/INSTALL.txt
/usr/share/dosbox/translations/it/LEGGIMI.txt
/usr/share/dosbox/translations/it/NEWS.txt
/usr/share/dosbox/translations/it/THANKS.txt
/usr/share/dosbox/translations/it/Video Instructions.txt
/usr/share/dosbox/translations/it/dosbox-0.74.conf
/usr/share/dosbox/translations/it/dosbox074ita.lng
/usr/share/dosbox/translations/ko
/usr/share/dosbox/translations/ko/README.txt
/usr/share/dosbox/translations/pt
/usr/share/dosbox/translations/pt/DOSBOX EM PORTUGUES NOTAS.txt
/usr/share/dosbox/translations/pt/LEIAME-0.73.txt
/usr/share/dosbox/translations/pt/dosbox-0.74.conf
/usr/share/dosbox/translations/pt/dosbox-0.74B.conf
/usr/share/dosbox/translations/pt/portuguese.lang
/usr/share/dosbox/translations/pt/zmbv
/usr/share/dosbox/translations/pt/zmbv/LeiaMe.txt
/usr/share/dosbox/translations/ru
/usr/share/dosbox/translations/ru/DOSBox 0.74 Manual RUS.txt
/usr/share/dosbox/translations/ru/Documentation
/usr/share/dosbox/translations/ru/Documentation/README RUS.txt
/usr/share/dosbox/translations/ru/Instructions_RUS_ENG.txt
/usr/share/dosbox/translations/ru/Video Codec
/usr/share/dosbox/translations/ru/Video Codec/Video Instructions Rus.txt
/usr/share/dosbox/translations/ru/dosbox.conf
/usr/share/dosbox/translations/ru/russian.txt
/usr/share/icons/hicolor/256x256/apps/dosbox.png
/usr/share/man/man1/dosbox.1.gz
/usr/share/metainfo/dosbox.appdata.xml

References

Summary

In this tutorial we learn how to install dosbox on Fedora 34 using yum and dnf.