How To Install xpuzzles on Ubuntu 18.04

In this tutorial we learn how to install xpuzzles on Ubuntu 18.04. xpuzzles is collection of puzzles for X (plain X version)

Introduction

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

What is xpuzzles

xpuzzles is:

The following puzzles are included:

  • Rotational 3D Puzzles: xrubik, xpyraminx, xoct, xskewb, xdino, xmball
  • Sliding Block Puzzles: xcubes, xtriangles, xhexagons, xpanex
  • Combination: xbarrel, xmlink

This version was compiled without the Motif GUI widget library and thus shows limited user interface functionality. See xmpuzzles for the extended version.

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

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

sudo apt-get update

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

sudo apt-get -y install xpuzzles

Install xpuzzles Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install xpuzzles

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

sudo aptitude -y install xpuzzles

How To Uninstall xpuzzles on Ubuntu 18.04

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

sudo apt-get remove xpuzzles

Uninstall xpuzzles And Its Dependencies

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

sudo apt-get -y autoremove xpuzzles

Remove xpuzzles Configurations and Data

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

sudo apt-get -y purge xpuzzles

Remove xpuzzles configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xpuzzles

References

Summary

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