How To Install xpat2 on Ubuntu 18.04

In this tutorial we learn how to install xpat2 on Ubuntu 18.04. xpat2 is Generic patience game for X11

Introduction

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

What is xpat2

xpat2 is:

xpat2 is a generic patience game which can be used with different rule sets. It does understand the rules of the well-known Spider game, as well as Klondike and others.

This program may have difficulties to start if you have an 8-bit or monochrome display.

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

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

sudo apt-get update

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

sudo apt-get -y install xpat2

Install xpat2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install xpat2

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

sudo aptitude -y install xpat2

How To Uninstall xpat2 on Ubuntu 18.04

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

sudo apt-get remove xpat2

Uninstall xpat2 And Its Dependencies

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

sudo apt-get -y autoremove xpat2

Remove xpat2 Configurations and Data

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

sudo apt-get -y purge xpat2

Remove xpat2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xpat2

References

Summary

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