How to Uninstall and Install peg-e Ubuntu 22.04

Updated: October 24, 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. I will show you how to install peg-e on Ubuntu 22.04 in this guide.

Requirements

  • Operating system: Ubuntu 22.04 is needed for peg-e to work
  • Privileges: Make sure you are able to execute sudo commands.

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 that you think is easy and you can follow.

Install peg-e using APT

This is one of the most popular methods for installing 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 22.04.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

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

sudo apt 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

Then, you can now install peg-e by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

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

sudo aptitude -y install peg-e

Uninstall peg-e on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just peg-e.

If you installed peg-e using APT or Aptitude, you could uninstall peg-e on Ubuntu by following this step:

sudo apt remove --auto-remove peg-e

You can also execute this command if you want to uninstall peg-e and remove its data and dependencies:

sudo apt autoremove --purge peg-e

Ending

In this guide, I showed you ways to install peg-e on Ubuntu 22.04 and some ways to uninstall peg-e too. Please contact me if you require any assistance. I’d be delighted to respond.