How To Install python3-asgi-ipc on Ubuntu 18.04

In this tutorial we learn how to install python3-asgi-ipc on Ubuntu 18.04. python3-asgi-ipc is ASGI channel layer that uses POSIX shared memory IPC (Python3 version)

Introduction

In this tutorial we learn how to install python3-asgi-ipc on Ubuntu 18.04.

What is python3-asgi-ipc

python3-asgi-ipc is:

An ASGI (Asynchronous Server Gateway Interface) channel layer that uses POSIX shared memory IPC as its backing store (only works between processes on the same machine).

You’ll need to instantiate the channel layer with a path prefix to create IPC objects underneath; any channel layers with the same prefix will talk to each other as long as they’re on the same machine.

This package contains the Python 3 version of the library.

There are three methods to install python3-asgi-ipc 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 python3-asgi-ipc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python3-asgi-ipc

Install python3-asgi-ipc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-asgi-ipc using apt by running the following command:

sudo apt -y install python3-asgi-ipc

Install python3-asgi-ipc 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 python3-asgi-ipc using aptitude by running the following command:

sudo aptitude -y install python3-asgi-ipc

How To Uninstall python3-asgi-ipc on Ubuntu 18.04

To uninstall only the python3-asgi-ipc package we can use the following command:

sudo apt-get remove python3-asgi-ipc

Uninstall python3-asgi-ipc And Its Dependencies

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

sudo apt-get -y autoremove python3-asgi-ipc

Remove python3-asgi-ipc Configurations and Data

To remove python3-asgi-ipc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python3-asgi-ipc

Remove python3-asgi-ipc configuration, data, and all of its dependencies

We can use the following command to remove python3-asgi-ipc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-asgi-ipc

References

Summary

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