How To Install 4digits on Debian 9
Introduction
In this tutorial we learn how to install 4digits
on Debian 9.
What is 4digits
4digits is:
4digits is a guess-the-number puzzle game. It’s called Bulls and Cows, and in China people simply call it Guess-the-Number. The game’s objective is to guess a four-digit number in 8 tries and the shortest time possible. It is similar to Mastermind, but the four digits must be unique. 4digits has both a graphical user interface version and a command-line version.
There are three methods to install 4digits
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install 4digits Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install 4digits
using apt-get
by running the following command:
sudo apt-get -y install 4digits
Install 4digits Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install 4digits
using apt
by running the following command:
sudo apt -y install 4digits
Install 4digits 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 4digits
using aptitude
by running the following command:
sudo aptitude -y install 4digits
How To Uninstall 4digits on Debian 9
To uninstall only the 4digits
package we can use the following command:
sudo apt-get remove 4digits
Uninstall 4digits And Its Dependencies
To uninstall 4digits
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove 4digits
Remove 4digits Configurations and Data
To remove 4digits
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge 4digits
Remove 4digits configuration, data, and all of its dependencies
We can use the following command to remove 4digits
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge 4digits
Dependencies
4digits have the following dependencies:
References
Summary
In this tutorial we learn how to install 4digits
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.