How To Install sudoku on Ubuntu 18.04

In this tutorial we learn how to install sudoku on Ubuntu 18.04. sudoku is console based sudoku

Introduction

In this tutorial we learn how to install sudoku on Ubuntu 18.04.

What is sudoku

sudoku is:

This sudoku puzzle generator/solver features:

  • character based (curses) interface;
  • cross-platform (Minix, Unix, Windows) with full source code (ANSI C);
  • generates hints upon request;
  • classification of board difficulty (very easy, easy, medium, hard or fiendish);
  • generation of new boards;
  • easy entry of boards published in newspapers, Internet, …;
  • multiple output formats (text, csv, HTML, PostScript).

There are three methods to install sudoku on Ubuntu 18.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 sudoku Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install sudoku

Install sudoku Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sudoku

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

sudo aptitude -y install sudoku

How To Uninstall sudoku on Ubuntu 18.04

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

sudo apt-get remove sudoku

Uninstall sudoku And Its Dependencies

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

sudo apt-get -y autoremove sudoku

Remove sudoku Configurations and Data

To remove sudoku configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge sudoku

Remove sudoku configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sudoku

References

Summary

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