How To Install libwordnet-querydata-perl on Ubuntu 18.04

In this tutorial we learn how to install libwordnet-querydata-perl on Ubuntu 18.04. libwordnet-querydata-perl is Perl interface to WordNet database

Introduction

In this tutorial we learn how to install libwordnet-querydata-perl on Ubuntu 18.04.

What is libwordnet-querydata-perl

libwordnet-querydata-perl is:

WordNet::QueryData provides a direct interface to the WordNet database files. It allows the user direct access to the full WordNet semantic lexicon. All parts of speech are supported and access is generally very efficient because the index and morphical exclusion tables are loaded at initialization. This initialization step is slow (appx. 10-15 seconds), but queries are very fast thereafter – thousands of queries can be completed every second.

There are three methods to install libwordnet-querydata-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 libwordnet-querydata-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 libwordnet-querydata-perl using apt-get by running the following command:

sudo apt-get -y install libwordnet-querydata-perl

Install libwordnet-querydata-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libwordnet-querydata-perl

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

sudo aptitude -y install libwordnet-querydata-perl

How To Uninstall libwordnet-querydata-perl on Ubuntu 18.04

To uninstall only the libwordnet-querydata-perl package we can use the following command:

sudo apt-get remove libwordnet-querydata-perl

Uninstall libwordnet-querydata-perl And Its Dependencies

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

sudo apt-get -y autoremove libwordnet-querydata-perl

Remove libwordnet-querydata-perl Configurations and Data

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

sudo apt-get -y purge libwordnet-querydata-perl

Remove libwordnet-querydata-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libwordnet-querydata-perl

References

Summary

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