How To Install python-sqlite3dbm on CentOS 7

In this tutorial we learn how to install python-sqlite3dbm on CentOS 7. python-sqlite3dbm is SQLite-backed dictionary conforming to the dbm interface

Introduction

In this tutorial we learn how to install python-sqlite3dbm on CentOS 7.

What is python-sqlite3dbm

This module provides a SQLite-backed dictionary conforming to the dbm interface, along with a shelve class that wraps the dict and provides serialization for it.

We can use yum or dnf to install python-sqlite3dbm on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-sqlite3dbm.

Install python-sqlite3dbm on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python-sqlite3dbm using yum by running the following command:

sudo yum -y install python-sqlite3dbm

Install python-sqlite3dbm on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python-sqlite3dbm using dnf by running the following command:

sudo dnf -y install python-sqlite3dbm

How To Uninstall python-sqlite3dbm on CentOS 7

To uninstall only the python-sqlite3dbm package we can use the following command:

sudo dnf remove python-sqlite3dbm

References

Summary

In this tutorial we learn how to install python-sqlite3dbm on CentOS 7 using yum and dnf.