How To Install libmediawiki-api-perl on Ubuntu 18.04

In this tutorial we learn how to install libmediawiki-api-perl on Ubuntu 18.04. libmediawiki-api-perl is Perl interface to the MediaWiki API

Introduction

In this tutorial we learn how to install libmediawiki-api-perl on Ubuntu 18.04.

What is libmediawiki-api-perl

libmediawiki-api-perl is:

MediaWiki::API is a Perl module that provides an interface to the MediaWiki API (see URL:http://www.mediawiki.org/wiki/API), which allows the creation of scripts to automate editing and extraction of data from MediaWiki-driven sites like Wikipedia.

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

sudo apt-get -y install libmediawiki-api-perl

Install libmediawiki-api-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmediawiki-api-perl

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

sudo aptitude -y install libmediawiki-api-perl

How To Uninstall libmediawiki-api-perl on Ubuntu 18.04

To uninstall only the libmediawiki-api-perl package we can use the following command:

sudo apt-get remove libmediawiki-api-perl

Uninstall libmediawiki-api-perl And Its Dependencies

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

sudo apt-get -y autoremove libmediawiki-api-perl

Remove libmediawiki-api-perl Configurations and Data

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

sudo apt-get -y purge libmediawiki-api-perl

Remove libmediawiki-api-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmediawiki-api-perl

References

Summary

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