How To Install dopewars on Ubuntu 20.04

In this tutorial we learn how to install dopewars on Ubuntu 20.04. dopewars is drug-dealing game set in streets of New York City

Introduction

In this tutorial we learn how to install dopewars on Ubuntu 20.04.

What is dopewars

dopewars is:

UNIX rewrite of the MS-DOS program of the same name, which in turn was inspired by John E. Dell’s “Drug Wars” game. You have one month to buy and sell drugs on the streets of New York, the aim being first to pay off your debt to the loan shark and then to make a fortune. And if you have to shoot a few cops in the process, well… The game includes TCP networking allowing you to meet (and shoot) other human drug dealers.

There are three methods to install dopewars on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install dopewars Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install dopewars using apt-get by running the following command:

sudo apt-get -y install dopewars

Install dopewars Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dopewars using apt by running the following command:

sudo apt -y install dopewars

Install dopewars 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install dopewars using aptitude by running the following command:

sudo aptitude -y install dopewars

How To Uninstall dopewars on Ubuntu 20.04

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

sudo apt-get remove dopewars

Uninstall dopewars And Its Dependencies

To uninstall dopewars and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove dopewars

Remove dopewars Configurations and Data

To remove dopewars configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge dopewars

Remove dopewars configuration, data, and all of its dependencies

We can use the following command to remove dopewars configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dopewars

References

Summary

In this tutorial we learn how to install dopewars package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.