How To Install wikipedia2text on Debian 9

In this tutorial we learn how to install wikipedia2text on Debian 9. wikipedia2text is displays Wikipedia articles on the command line

Introduction

In this tutorial we learn how to install wikipedia2text on Debian 9.

What is wikipedia2text

wikipedia2text is:

This script fetches Wikipedia articles (currently supports around 30 Wikipedia languages) and displays them as plain text in a pager or just sends the text to standard out. Alternatively it opens the Wikipedia article in a (possibly GUI) web browser or just shows the URL of the appropriate Wikipedia article.

There are three methods to install wikipedia2text on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install wikipedia2text Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install wikipedia2text

Install wikipedia2text Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install wikipedia2text using apt by running the following command:

sudo apt -y install wikipedia2text

Install wikipedia2text 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install wikipedia2text using aptitude by running the following command:

sudo aptitude -y install wikipedia2text

How To Uninstall wikipedia2text on Debian 9

To uninstall only the wikipedia2text package we can use the following command:

sudo apt-get remove wikipedia2text

Uninstall wikipedia2text And Its Dependencies

To uninstall wikipedia2text and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove wikipedia2text

Remove wikipedia2text Configurations and Data

To remove wikipedia2text configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge wikipedia2text

Remove wikipedia2text configuration, data, and all of its dependencies

We can use the following command to remove wikipedia2text configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge wikipedia2text

Dependencies

wikipedia2text have the following dependencies:

References

Summary

In this tutorial we learn how to install wikipedia2text package on Debian 9 using different package management tools: apt, apt-get and aptitude.