How To Install freecdb on Debian 11

In this tutorial we learn how to install freecdb on Debian 11. freecdb is creating and reading constant databases

Introduction

In this tutorial we learn how to install freecdb on Debian 11.

What is freecdb

freecdb is:

freecdb is a fast, reliable, simple package for creating and reading constant databases. Its database structure provides several features:

  • Fast lookups: A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one.
  • Low overhead: A database uses 2048 bytes, plus 24 bytes per record, plus the space for keys and data.
  • No random limits: cdb can handle any database up to 4 gigabytes. There are no other restrictions; records don’t even have to fit into memory. Databases are stored in a machine-independent format.
  • Fast atomic database replacement: cdbmake can rewrite an entire database two orders of magnitude faster than other hashing packages.
  • Fast database dumps: cdbdump prints the contents of a database in cdbmake-compatible format.

This package is derived from the cdb package, and uses the original cdb library. See http://cr.yp.to/cdb.html

There are three methods to install freecdb on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install freecdb Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install freecdb using apt-get by running the following command:

sudo apt-get -y install freecdb

Install freecdb Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install freecdb using apt by running the following command:

sudo apt -y install freecdb

Install freecdb 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 freecdb using aptitude by running the following command:

sudo aptitude -y install freecdb

How To Uninstall freecdb on Debian 11

To uninstall only the freecdb package we can use the following command:

sudo apt-get remove freecdb

Uninstall freecdb And Its Dependencies

To uninstall freecdb and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove freecdb

Remove freecdb Configurations and Data

To remove freecdb configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge freecdb

Remove freecdb configuration, data, and all of its dependencies

We can use the following command to remove freecdb configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge freecdb

Dependencies

freecdb have the following dependencies:

References

Summary

In this tutorial we learn how to install freecdb package on Debian 11 using different package management tools: apt, apt-get and aptitude.