How To Install moon-lander on Ubuntu 18.04

In this tutorial we learn how to install moon-lander on Ubuntu 18.04. moon-lander is game based on the classic moon lander

Introduction

In this tutorial we learn how to install moon-lander on Ubuntu 18.04.

What is moon-lander

moon-lander is:

Moonlander is a fun and enjoyable modern graphical version (with sound) of the classic moonlander game. The objective is to land your rocketship safely using a limited amount of fuel while fighting gravity.

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

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

sudo apt-get update

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

sudo apt-get -y install moon-lander

Install moon-lander Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install moon-lander

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

sudo aptitude -y install moon-lander

How To Uninstall moon-lander on Ubuntu 18.04

To uninstall only the moon-lander package we can use the following command:

sudo apt-get remove moon-lander

Uninstall moon-lander And Its Dependencies

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

sudo apt-get -y autoremove moon-lander

Remove moon-lander Configurations and Data

To remove moon-lander configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge moon-lander

Remove moon-lander configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge moon-lander

References

Summary

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