How To Install python-larch on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-larch
on Ubuntu 18.04.
What is python-larch
python-larch is:
An implementation of a particular kind of B-tree, based on research by Ohad Rodeh. This is the same data structure that btrfs uses, but in a new, pure-Python implementation.
The distinctive feature of this B-tree is that a node is never (conceptually) modified. Instead, all updates are done by copy-on-write. This makes it easy to clone a tree, and modify only the clone, while other processes access the original tree.
The implementation is generic and flexible, so that you may use it in a variety of situations. For example, the tree itself does not decide where its nodes are stored: you provide a class that does that for it. The library contains two implementations, one for in-memory and one for on-disk storage.
There are three methods to install python-larch
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-larch 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-larch
using apt-get
by running the following command:
sudo apt-get -y install python-larch
Install python-larch Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-larch
using apt
by running the following command:
sudo apt -y install python-larch
Install python-larch 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-larch
using aptitude
by running the following command:
sudo aptitude -y install python-larch
How To Uninstall python-larch on Ubuntu 18.04
To uninstall only the python-larch
package we can use the following command:
sudo apt-get remove python-larch
Uninstall python-larch And Its Dependencies
To uninstall python-larch
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-larch
Remove python-larch Configurations and Data
To remove python-larch
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-larch
Remove python-larch configuration, data, and all of its dependencies
We can use the following command to remove python-larch
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-larch
References
Summary
In this tutorial we learn how to install python-larch
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.