How To Install python-sphinxcontrib.spelling on Ubuntu 18.04

In this tutorial we learn how to install python-sphinxcontrib.spelling on Ubuntu 18.04. python-sphinxcontrib.spelling is Sphinx spelling extension

Introduction

In this tutorial we learn how to install python-sphinxcontrib.spelling on Ubuntu 18.04.

What is python-sphinxcontrib.spelling

python-sphinxcontrib.spelling is:

This package contains the spelling extension for the Sphinx documentation system. The extension enables a spelling checker which uses PyEnchant to produce a report showing misspelled words.

The extension also:

  • Supports multiple source languages using the standard enchant dictionaries.
  • Supports project-specific dictionaries for localized jargon and other terminology that may not appear in the global dictionaries.
  • Suggests alternatives to words not found in the dictionary, when possible.

There are three methods to install python-sphinxcontrib.spelling 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 python-sphinxcontrib.spelling Using apt-get

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

sudo apt-get update

After updating apt database, We can install python-sphinxcontrib.spelling using apt-get by running the following command:

sudo apt-get -y install python-sphinxcontrib.spelling

Install python-sphinxcontrib.spelling Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-sphinxcontrib.spelling using apt by running the following command:

sudo apt -y install python-sphinxcontrib.spelling

Install python-sphinxcontrib.spelling 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 python-sphinxcontrib.spelling using aptitude by running the following command:

sudo aptitude -y install python-sphinxcontrib.spelling

How To Uninstall python-sphinxcontrib.spelling on Ubuntu 18.04

To uninstall only the python-sphinxcontrib.spelling package we can use the following command:

sudo apt-get remove python-sphinxcontrib.spelling

Uninstall python-sphinxcontrib.spelling And Its Dependencies

To uninstall python-sphinxcontrib.spelling and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-sphinxcontrib.spelling

Remove python-sphinxcontrib.spelling Configurations and Data

To remove python-sphinxcontrib.spelling configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-sphinxcontrib.spelling

Remove python-sphinxcontrib.spelling configuration, data, and all of its dependencies

We can use the following command to remove python-sphinxcontrib.spelling configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-sphinxcontrib.spelling

References

Summary

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