How To Install python3-dugong on Ubuntu 20.04
Introduction
In this tutorial we learn how to install python3-dugong
on Ubuntu 20.04.
What is python3-dugong
python3-dugong is:
The Python Dugong module provides an API for communicating with HTTP 1.1 servers. It is an alternative to the standard library’s http.client (formerly httplib) module. In contrast to http.client, Dugong:
- allows you to send multiple requests right after each other without having to read the responses first.
- supports waiting for 100-continue before sending the request body.
- raises an exception instead of silently delivering partial data if the connection is closed before all data has been received.
- raises one specific exception (ConnectionClosed) if the connection has been closed (while http.client connection may raise any of BrokenPipeError, BadStatusLine, ConnectionAbortedError, ConnectionResetError, IncompleteRead or simply return ’’ on read)
- supports non-blocking, asynchronous operation and is compatible with the asyncio module.
- can in most cases distinguish between an unavailable DNS server and an unresolvable hostname.
- is not compatible with old HTTP 0.9 or 1.0 servers.
All request and response headers are represented as str, but must be encodable in latin1. Request and response body must be bytes-like objects or binary streams.
There are three methods to install python3-dugong
on Ubuntu 20.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-dugong 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-dugong
using apt-get
by running the following command:
sudo apt-get -y install python3-dugong
Install python3-dugong Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-dugong
using apt
by running the following command:
sudo apt -y install python3-dugong
Install python3-dugong 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-dugong
using aptitude
by running the following command:
sudo aptitude -y install python3-dugong
How To Uninstall python3-dugong on Ubuntu 20.04
To uninstall only the python3-dugong
package we can use the following command:
sudo apt-get remove python3-dugong
Uninstall python3-dugong And Its Dependencies
To uninstall python3-dugong
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove python3-dugong
Remove python3-dugong Configurations and Data
To remove python3-dugong
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge python3-dugong
Remove python3-dugong configuration, data, and all of its dependencies
We can use the following command to remove python3-dugong
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-dugong
References
Summary
In this tutorial we learn how to install python3-dugong
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.