How To Install python-ajax-select on Ubuntu 18.04

In this tutorial we learn how to install python-ajax-select on Ubuntu 18.04. python-ajax-select is Django library for editing fields with autocomplete

Introduction

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

What is python-ajax-select

python-ajax-select is:

Enables editing of ForeignKey, ManyToMany and simple text fields using the Autocomplete - jQuery plugin.

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

sudo apt-get -y install python-ajax-select

Install python-ajax-select Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-ajax-select

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

sudo aptitude -y install python-ajax-select

How To Uninstall python-ajax-select on Ubuntu 18.04

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

sudo apt-get remove python-ajax-select

Uninstall python-ajax-select And Its Dependencies

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

sudo apt-get -y autoremove python-ajax-select

Remove python-ajax-select Configurations and Data

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

sudo apt-get -y purge python-ajax-select

Remove python-ajax-select configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-ajax-select

References

Summary

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