How To Install python3-sqlitedict on Debian 12
Introduction
In this tutorial we learn how to install python3-sqlitedict
on Debian 12.
What is python3-sqlitedict
python3-sqlitedict is:
A lightweight wrapper around Python’s sqlite3 database with a simple, Pythonic dict-like interface and support for multi-thread access:
By default, sqlitedict’s exception handling favors verbosity over efficiency. It extracts and outputs the outer exception stack to the error logs.
Features include:
- Values can be any picklable objects (uses ‘pickle’ with the highest protocol).
- Support for multiple tables (=dicts) living in the same database file.
- Support for access from multiple threads to the same connection (needed by e.g. Pyro).
- Support for custom serialization or compression:
There are three methods to install python3-sqlitedict
on Debian 12. 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-sqlitedict 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-sqlitedict
using apt-get
by running the following command:
sudo apt-get -y install python3-sqlitedict
Install python3-sqlitedict Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-sqlitedict
using apt
by running the following command:
sudo apt -y install python3-sqlitedict
Install python3-sqlitedict 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python3-sqlitedict
using aptitude
by running the following command:
sudo aptitude -y install python3-sqlitedict
How To Uninstall python3-sqlitedict on Debian 12
To uninstall only the python3-sqlitedict
package we can use the following command:
sudo apt-get remove python3-sqlitedict
Uninstall python3-sqlitedict And Its Dependencies
To uninstall python3-sqlitedict
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove python3-sqlitedict
Remove python3-sqlitedict Configurations and Data
To remove python3-sqlitedict
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge python3-sqlitedict
Remove python3-sqlitedict configuration, data, and all of its dependencies
We can use the following command to remove python3-sqlitedict
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-sqlitedict
Dependencies
python3-sqlitedict have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-sqlitedict
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.