badger command not found

In this troubleshooting guide we learn how to fix badger command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

badger: command not found

or when using sudo you get the following error message

sudo: badger: command not found

Solutions to badger: command not found

How To Fix badger: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu badger is provided by badger package.

badger 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.

To fix this problem, we can install more using the command below.

sudo apt-get -y install badger

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install badger.

sudo apt -y install badger

Or if you have aptitude installed you can use the following command.

sudo aptitude install badger

Summary

In this tutorial we learn how to fix badger command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.