Ways to Install and Uninstall libstemmer-tools Ubuntu 22.04

Updated: October 26, 2022

Snowball provides access to efficient algorithms for calculating a “stemmed” form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. This is most useful in building search engines and information retrieval software; for example, a search with stemming enabled should be able to find a document containing “cycling” given the query “cycles”. In this tutorial, I will show you how to install libstemmer-tools on Ubuntu 22.04.

Requirements

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install libstemmer-tools on Ubuntu 22.04

Install libstemmer-tools Ubuntu 22.04

libstemmer-tools 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 you believe is simple and easy to follow.

Install libstemmer-tools using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get libstemmer-tools on your Ubuntu.

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. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

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

sudo apt -y install libstemmer-tools

Install libstemmer-tools using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After installing aptitude, you can now install libstemmer-tools, just 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 fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install libstemmer-tools Ubuntu by executing this command in the terminal.

sudo aptitude -y install libstemmer-tools

Uninstall libstemmer-tools 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 libstemmer-tools.

If you installed libstemmer-tools using APT or Aptitude, you could uninstall libstemmer-tools on Ubuntu by executing this command

sudo apt remove --auto-remove libstemmer-tools

If you want to uninstall libstemmer-tools and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge libstemmer-tools

Ending

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