How To Install python-dictclient on Ubuntu 18.04

In this tutorial we learn how to install python-dictclient on Ubuntu 18.04. python-dictclient is Python client library for DICT (RFC2229) protocol

Introduction

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

What is python-dictclient

python-dictclient is:

This is a new library for interacting with Dict servers. It defines three classes – Connection, Database, and Definition. It supports all common Dict server requests, including definitions, matching, and getting information about available databases, capabilities, etc. You can use it to communicate to a local or remote dictd database. The homepage for this package (includes docs) is at gopher://quux.org/1/devel/dictclient.

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

sudo apt-get -y install python-dictclient

Install python-dictclient Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-dictclient

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

sudo aptitude -y install python-dictclient

How To Uninstall python-dictclient on Ubuntu 18.04

To uninstall only the python-dictclient package we can use the following command:

sudo apt-get remove python-dictclient

Uninstall python-dictclient And Its Dependencies

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

sudo apt-get -y autoremove python-dictclient

Remove python-dictclient Configurations and Data

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

sudo apt-get -y purge python-dictclient

Remove python-dictclient configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-dictclient

References

Summary

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