How To Install dosbox on CentOS 7

In this tutorial we learn how to install dosbox on CentOS 7. dosbox is x86/DOS emulator with sound and graphics

Introduction

In this tutorial we learn how to install dosbox on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install dosbox.

Install dosbox on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install dosbox using yum by running the following command:

sudo yum -y install dosbox

Install dosbox on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install dosbox using dnf by running the following command:

sudo dnf -y install dosbox

How To Uninstall dosbox on CentOS 7

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

sudo dnf remove dosbox

References

Summary

In this tutorial we learn how to install dosbox on CentOS 7 using yum and dnf.