How To Install libleveldb1v5 on Debian 9

In this tutorial we learn how to install libleveldb1v5 on Debian 9. libleveldb1v5 is fast key-value storage library

Introduction

In this tutorial we learn how to install libleveldb1v5 on Debian 9.

What is libleveldb1v5

libleveldb1v5 is:

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

Features:

  • Keys and values are arbitrary byte arrays.
  • Data is stored sorted by key.
  • Callers can provide a custom comparison function to override the sort order.
  • The basic operations are Put(key,value), Get(key), Delete(key).
  • Multiple changes can be made in one atomic batch.
  • Users can create a transient snapshot to get a consistent view of data.
  • Forward and backward iteration is supported over the data.
  • Data is automatically compressed using the Snappy compression library.
  • External activity (file system operations etc.) is relayed through a virtual interface so users can customize the operating system interactions.
  • Detailed documentation about how to use the library is included with the source code.

Limitations:

  • This is not a SQL database. It does not have a relational data model, it does not support SQL queries, and it has no support for indexes.
  • Only a single process (possibly multi-threaded) can access a particular database at a time.
  • There is no client-server support builtin to the library. An application that needs such support will have to wrap their own server around the library.

This package provides the shared library.

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

Install libleveldb1v5 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libleveldb1v5

Install libleveldb1v5 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libleveldb1v5

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

sudo aptitude -y install libleveldb1v5

How To Uninstall libleveldb1v5 on Debian 9

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

sudo apt-get remove libleveldb1v5

Uninstall libleveldb1v5 And Its Dependencies

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

sudo apt-get -y autoremove libleveldb1v5

Remove libleveldb1v5 Configurations and Data

To remove libleveldb1v5 configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libleveldb1v5

Remove libleveldb1v5 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libleveldb1v5

Dependencies

libleveldb1v5 have the following dependencies:

References

Summary

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