How To Install freesweep on Debian 11

In this tutorial we learn how to install freesweep on Debian 11. freesweep is text-based minesweeper

Introduction

In this tutorial we learn how to install freesweep on Debian 11.

What is freesweep

freesweep is:

Freesweep is an implementation of the popular minesweeper game, where one tries to find all the mines without igniting any, based on hints given by the computer. Unlike most implementations of this game, Freesweep works in any visual text display - in Linux console, in an xterm, and in most text-based terminals currently in use.

There are three methods to install freesweep 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 freesweep Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install freesweep

Install freesweep Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install freesweep

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

sudo aptitude -y install freesweep

How To Uninstall freesweep on Debian 11

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

sudo apt-get remove freesweep

Uninstall freesweep And Its Dependencies

To uninstall freesweep and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove freesweep

Remove freesweep Configurations and Data

To remove freesweep configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge freesweep

Remove freesweep configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge freesweep

Dependencies

freesweep have the following dependencies:

References

Summary

In this tutorial we learn how to install freesweep package on Debian 11 using different package management tools: apt, apt-get and aptitude.