How To Install python-axiom on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-axiom on Ubuntu 18.04.
What is python-axiom
python-axiom is:
Divmod Axiom is an object database, or alternatively, an object-relational mapper, implemented on top of Python.
Its primary goal is to provide an object-oriented layer with the key aspects of OOP (Object Oriented Programming), i.e. polymorphism and message dispatch, without hindering the power of an RDBMS (Relational DataBase Management System).
Axiom is a live database, not only an SQL generation tool: it includes an implementation of a scheduler service, external file references, automatic upgrades, robust failure handling, and Twisted integration.
Axiom is tightly integrated with Twisted, and can store, start, and stop Twisted services directly from the database using the included ‘axiomatic’ command-line tool.
Note: Axiom currently supports only SQLite and does NOT have any features for dealing with concurrency.
There are three methods to install python-axiom 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-axiom 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-axiom using apt-get by running the following command:
sudo apt-get -y install python-axiom
Install python-axiom Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install python-axiom using apt by running the following command:
sudo apt -y install python-axiom
Install python-axiom 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-axiom using aptitude by running the following command:
sudo aptitude -y install python-axiom
How To Uninstall python-axiom on Ubuntu 18.04
To uninstall only the python-axiom package we can use the following command:
sudo apt-get remove python-axiom
Uninstall python-axiom And Its Dependencies
To uninstall python-axiom and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-axiom
Remove python-axiom Configurations and Data
To remove python-axiom configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-axiom
Remove python-axiom configuration, data, and all of its dependencies
We can use the following command to remove python-axiom configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-axiom
References
Summary
In this tutorial we learn how to install python-axiom package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.