How To Install python-lamson on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-lamson
on Ubuntu 18.04.
What is python-lamson
python-lamson is:
Lamson is a pure Python SMTP server designed to create robust and complex mail applications in the style of modern web frameworks such as Django. Unlike traditional SMTP servers like Postfix or Sendmail, Lamson has all the features of a web application stack (ORM, templates, routing, handlers, state machines, Python) without needing to configure alias files, run newaliases, or juggle tons of tiny fragile processes. Lamson also plays well with other web frameworks and Python libraries.
There are three methods to install python-lamson
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-lamson 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-lamson
using apt-get
by running the following command:
sudo apt-get -y install python-lamson
Install python-lamson Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-lamson
using apt
by running the following command:
sudo apt -y install python-lamson
Install python-lamson 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-lamson
using aptitude
by running the following command:
sudo aptitude -y install python-lamson
How To Uninstall python-lamson on Ubuntu 18.04
To uninstall only the python-lamson
package we can use the following command:
sudo apt-get remove python-lamson
Uninstall python-lamson And Its Dependencies
To uninstall python-lamson
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-lamson
Remove python-lamson Configurations and Data
To remove python-lamson
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-lamson
Remove python-lamson configuration, data, and all of its dependencies
We can use the following command to remove python-lamson
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-lamson
References
Summary
In this tutorial we learn how to install python-lamson
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.