How To Install gravitywars on Ubuntu 22.04

In this tutorial we learn how to install gravitywars on Ubuntu 22.04. gravitywars is clone of Gravity Force

Introduction

In this tutorial we learn how to install gravitywars on Ubuntu 22.04.

What is gravitywars

gravitywars is:

Gravity Wars is inspired by Gravity Force, one of the greatest games for the Amiga. This version is a little different, with a much higher resolution, and better graphics.

The aim of the game is to guide a spaceship using only thrust and orientation to the exit, fighting against gravity and inertia. It includes some new features like water, exploding doors, bonus objects, fans (ie. wind), and some other special effects like exploding bullets and splashing water.

Gravity Wars is no longer maintained upstream and this Debian package should be considered the current upstream version.

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

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

sudo apt-get update

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

sudo apt-get -y install gravitywars

Install gravitywars Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gravitywars

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

sudo aptitude -y install gravitywars

How To Uninstall gravitywars on Ubuntu 22.04

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

sudo apt-get remove gravitywars

Uninstall gravitywars And Its Dependencies

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

sudo apt-get -y autoremove gravitywars

Remove gravitywars Configurations and Data

To remove gravitywars configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge gravitywars

Remove gravitywars configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gravitywars

References

Summary

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