How To Install golang-github-dgraph-io-badger-dev on Kali Linux

In this tutorial we learn how to install golang-github-dgraph-io-badger-dev on Kali Linux. golang-github-dgraph-io-badger-dev is Fast key-value DB in Go - development files for embedding.

Introduction

In this tutorial we learn how to install golang-github-dgraph-io-badger-dev on Kali Linux.

What is golang-github-dgraph-io-badger-dev

golang-github-dgraph-io-badger-dev is:

BadgerDB is an embeddable, persistent and fast key-value (KV) database written in pure Go. It is the underlying database for Dgraph (https://dgraph.io), a fast, distributed graph database. It’s meant to be a performant alternative to non-Go-based key-value stores like RocksDB. Project Status [Jun 26, 2019] Badger is stable and is being used to serve data sets worth hundreds of terabytes. Badger supports concurrent ACID transactions with serializable snapshot isolation (SSI) guarantees. A Jepsen-style bank test runs nightly for 8h, with –race flag and ensures the maintenance of transactional guarantees. Badger has also been tested to work with filesystem level anomalies, to ensure persistence and consistency.

Badger v1.0 was released in Nov 2017, and the latest version that is data-compatible with v1.0 is v1.6.0.

Badger v2.0, use a new storage format which won’t be compatible with all of the v1.x.

This package contains the Go library.

There are three methods to install golang-github-dgraph-io-badger-dev on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install golang-github-dgraph-io-badger-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install golang-github-dgraph-io-badger-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-dgraph-io-badger-dev

Install golang-github-dgraph-io-badger-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-dgraph-io-badger-dev using apt by running the following command:

sudo apt -y install golang-github-dgraph-io-badger-dev

Install golang-github-dgraph-io-badger-dev Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install golang-github-dgraph-io-badger-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-dgraph-io-badger-dev

How To Uninstall golang-github-dgraph-io-badger-dev on Kali Linux

To uninstall only the golang-github-dgraph-io-badger-dev package we can use the following command:

sudo apt-get remove golang-github-dgraph-io-badger-dev

Uninstall golang-github-dgraph-io-badger-dev And Its Dependencies

To uninstall golang-github-dgraph-io-badger-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove golang-github-dgraph-io-badger-dev

Remove golang-github-dgraph-io-badger-dev Configurations and Data

To remove golang-github-dgraph-io-badger-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge golang-github-dgraph-io-badger-dev

Remove golang-github-dgraph-io-badger-dev configuration, data, and all of its dependencies

We can use the following command to remove golang-github-dgraph-io-badger-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge golang-github-dgraph-io-badger-dev

Dependencies

golang-github-dgraph-io-badger-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install golang-github-dgraph-io-badger-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.