How to Uninstall and Install pgn-extract on Ubuntu 22.04

Updated: August 23, 2022

Pgn-extract is a program to extract selected games from a collection of chess games in PGN format. There are several ways to specify the criteria on which to extract: textual move sequences, the position reached after a sequence of moves, information in the tag fields, and material balance in the ending. In this tutorial, I will show you how to install pgn-extract on Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install pgn-extract on Ubuntu 22.04

Install pgn-extract Ubuntu 22.04

pgn-extract is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install pgn-extract 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 steps to install pgn-extract 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 update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install pgn-extract Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install pgn-extract

Install pgn-extract using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt -y install aptitude

After installing aptitude, you can now install pgn-extract, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install pgn-extract Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install pgn-extract

Uninstall pgn-extract on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

If you installed pgn-extract using APT or Aptitude, you could uninstall pgn-extract on Ubuntu by running this command

sudo apt remove --auto-remove pgn-extract

To uninstall pgn-extract and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge pgn-extract

Ending

In this tutorial, I showed you ways to install pgn-extract on Ubuntu 22.04 and ways to uninstall pgn-extract too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.