How To Install libsnowball-norwegian-perl on Ubuntu 18.04

In this tutorial we learn how to install libsnowball-norwegian-perl on Ubuntu 18.04. libsnowball-norwegian-perl is Stemming algorithm for Norwegian

Introduction

In this tutorial we learn how to install libsnowball-norwegian-perl on Ubuntu 18.04.

What is libsnowball-norwegian-perl

libsnowball-norwegian-perl is:

The stem function takes a scalar as a parameter and stems the word according to Martin Porters Norwegian stemming algorithm, which can be found at the Snowball website: http://snowball.tartarus.org/.

It also supports caching if you pass the use_cache option when constructing a new L:S:S:N object.

There are three methods to install libsnowball-norwegian-perl 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 libsnowball-norwegian-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libsnowball-norwegian-perl using apt-get by running the following command:

sudo apt-get -y install libsnowball-norwegian-perl

Install libsnowball-norwegian-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsnowball-norwegian-perl using apt by running the following command:

sudo apt -y install libsnowball-norwegian-perl

Install libsnowball-norwegian-perl 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 libsnowball-norwegian-perl using aptitude by running the following command:

sudo aptitude -y install libsnowball-norwegian-perl

How To Uninstall libsnowball-norwegian-perl on Ubuntu 18.04

To uninstall only the libsnowball-norwegian-perl package we can use the following command:

sudo apt-get remove libsnowball-norwegian-perl

Uninstall libsnowball-norwegian-perl And Its Dependencies

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

sudo apt-get -y autoremove libsnowball-norwegian-perl

Remove libsnowball-norwegian-perl Configurations and Data

To remove libsnowball-norwegian-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libsnowball-norwegian-perl

Remove libsnowball-norwegian-perl configuration, data, and all of its dependencies

We can use the following command to remove libsnowball-norwegian-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libsnowball-norwegian-perl

References

Summary

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