How To Install golang-github-armon-go-radix-dev on Debian 10

Learn how to install golang-github-armon-go-radix-dev on Debian 10 with this tutorial. golang-github-armon-go-radix-dev is Golang implementation of Radix trees

Introduction

In this tutorial we learn how to install golang-github-armon-go-radix-dev on Debian 10.

What is golang-github-armon-go-radix-dev

golang-github-armon-go-radix-dev is:

Provides the radix package that implements a radix tree. The package only provides a single Tree implementation, optimized for sparse nodes.

As a radix tree, it provides the following:

  • O(k) operations. In many cases, this can be faster than a hash table since the hash function is an O(k) operation, and hash tables have very poor cache locality.
  • Minimum / Maximum value lookups
  • Ordered iteration

For an immutable variant, see go-immutable-radix.

This package contains the source.

There are three methods to install golang-github-armon-go-radix-dev on Debian 10. 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-armon-go-radix-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-armon-go-radix-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-armon-go-radix-dev

Install golang-github-armon-go-radix-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-armon-go-radix-dev using apt by running the following command:

sudo apt -y install golang-github-armon-go-radix-dev

Install golang-github-armon-go-radix-dev 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 golang-github-armon-go-radix-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-armon-go-radix-dev

How To Uninstall golang-github-armon-go-radix-dev on Debian 10

To uninstall only the golang-github-armon-go-radix-dev package we can use the following command:

sudo apt-get remove golang-github-armon-go-radix-dev

Uninstall golang-github-armon-go-radix-dev And Its Dependencies

To uninstall golang-github-armon-go-radix-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove golang-github-armon-go-radix-dev

Remove golang-github-armon-go-radix-dev Configurations and Data

To remove golang-github-armon-go-radix-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge golang-github-armon-go-radix-dev

Remove golang-github-armon-go-radix-dev configuration, data, and all of its dependencies

We can use the following command to remove golang-github-armon-go-radix-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge golang-github-armon-go-radix-dev

Dependencies

golang-github-armon-go-radix-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install golang-github-armon-go-radix-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.