How to Uninstall and Install peg-e on Ubuntu 22.04

Updated: August 23, 2022

Peg-E is a peg solitaire game in which you jump over pieces in order to remove them from the board, ultimately trying to eliminate all but one. The boards are randomly generated, with 100 levels of difficulty. The game auto-saves, and has undo-redo capability. Pieces can move horizontally, vertically, and diagonally. In this tutorial, I will show you ways to install peg-e Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install peg-e on Ubuntu 22.04

Install peg-e Ubuntu 22.04

peg-e is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install peg-e using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get peg-e on your Ubuntu.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install peg-e Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install peg-e

Install peg-e using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt install aptitude

After installing it, you can now install peg-e by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install peg-e Ubuntu by executing this command in the terminal.

sudo aptitude -y install peg-e

Uninstall peg-e on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a peg-e.

You can uninstall peg-e Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove peg-e

If you want to uninstall peg-e and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge peg-e

Conclusion

In this tutorial, I showed you ways to install peg-e on Ubuntu 22.04 and some ways to uninstall peg-e too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.