How To Install python-django-configglue on Ubuntu 18.04

In this tutorial we learn how to install python-django-configglue on Ubuntu 18.04. python-django-configglue is Django commands for working with configglue generated settings

Introduction

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

What is python-django-configglue

python-django-configglue is:

Django-configglue provides the necessary glue to work with settings generated using configglue ini-style configuration files instead of using plain Python modules.

Configglue is a library that glues together Python’s optparse.OptionParser and ConfigParser.ConfigParser, so that you don’t have to repeat yourself when you want to export the same options to a configuration file and a commandline interface.

Commands are available to:

  • get the value of a setting
  • list all settings used (and their values)
  • list all settings used, including django global settings (and their values)
  • locate the definition of a setting (useful when the configuration is defined throughout several files)
  • validate settings (make sure the values match the defined schema)

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

sudo apt-get -y install python-django-configglue

Install python-django-configglue Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-django-configglue

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

sudo aptitude -y install python-django-configglue

How To Uninstall python-django-configglue on Ubuntu 18.04

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

sudo apt-get remove python-django-configglue

Uninstall python-django-configglue And Its Dependencies

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

sudo apt-get -y autoremove python-django-configglue

Remove python-django-configglue Configurations and Data

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

sudo apt-get -y purge python-django-configglue

Remove python-django-configglue configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-django-configglue

References

Summary

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