How To Install libcatmandu-wikidata-perl on Ubuntu 18.04

In this tutorial we learn how to install libcatmandu-wikidata-perl on Ubuntu 18.04. libcatmandu-wikidata-perl is import from Wikidata for processing with Catmandu

Introduction

In this tutorial we learn how to install libcatmandu-wikidata-perl on Ubuntu 18.04.

What is libcatmandu-wikidata-perl

libcatmandu-wikidata-perl is:

Catmandu provides a suite of Perl modules to ease the import, storage, retrieval, export and transformation of metadata records.

Catmandu::Wikidata provides modules to process data from http://www.wikidata.org/ within the Catmandu framework. In particular it facilitates access to Wikidata entity record via Catmandu::Importer::Wikidata, and simplification of these records via fixes. Other Catmandu modules can be used to further process the records, for instance to load them into a database.

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

sudo apt-get -y install libcatmandu-wikidata-perl

Install libcatmandu-wikidata-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcatmandu-wikidata-perl

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

sudo aptitude -y install libcatmandu-wikidata-perl

How To Uninstall libcatmandu-wikidata-perl on Ubuntu 18.04

To uninstall only the libcatmandu-wikidata-perl package we can use the following command:

sudo apt-get remove libcatmandu-wikidata-perl

Uninstall libcatmandu-wikidata-perl And Its Dependencies

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

sudo apt-get -y autoremove libcatmandu-wikidata-perl

Remove libcatmandu-wikidata-perl Configurations and Data

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

sudo apt-get -y purge libcatmandu-wikidata-perl

Remove libcatmandu-wikidata-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcatmandu-wikidata-perl

References

Summary

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