How To Install nuitka on Ubuntu 18.04
Introduction
In this tutorial we learn how to install nuitka on Ubuntu 18.04.
What is nuitka
nuitka is:
This Python compiler achieves full language compatibility and compiles Python code into compiled objects that are not second class at all. Instead they can be used in the same way as pure Python objects.
There are three methods to install nuitka 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 nuitka Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install nuitka using apt-get by running the following command:
sudo apt-get -y install nuitka
Install nuitka Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install nuitka using apt by running the following command:
sudo apt -y install nuitka
Install nuitka 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 nuitka using aptitude by running the following command:
sudo aptitude -y install nuitka
How To Uninstall nuitka on Ubuntu 18.04
To uninstall only the nuitka package we can use the following command:
sudo apt-get remove nuitka
Uninstall nuitka And Its Dependencies
To uninstall nuitka and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove nuitka
Remove nuitka Configurations and Data
To remove nuitka configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge nuitka
Remove nuitka configuration, data, and all of its dependencies
We can use the following command to remove nuitka configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nuitka
References
Summary
In this tutorial we learn how to install nuitka package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.