How To Install golang-github-gorilla-mux-dev on Kali Linux

In this tutorial we learn how to install golang-github-gorilla-mux-dev on Kali Linux. golang-github-gorilla-mux-dev is powerful URL router and dispatcher for golang

Introduction

In this tutorial we learn how to install golang-github-gorilla-mux-dev on Kali Linux.

What is golang-github-gorilla-mux-dev

golang-github-gorilla-mux-dev is:

Package gorilla/mux implements a request router and dispatcher.

The name mux stands for “HTTP request multiplexer”. Like the standard http.ServeMux, mux.Router matches incoming requests against a list of registered routes and calls a handler for the route that matches the URL or other conditions. The main features are:

  • Requests can be matched based on URL host, path, path prefix, schemes, header and query values, HTTP methods or using custom matchers.
  • URL hosts and paths can have variables with an optional regular expression.
  • Registered URLs can be built, or “reversed”, which helps maintaining references to resources.
  • Routes can be used as subrouters: nested routes are only tested if the parent route matches. This is useful to define groups of routes that share common conditions like a host, a path prefix or other repeated attributes. As a bonus, this optimizes request matching.
  • It implements the http.Handler interface so it is compatible with the standard http.ServeMux.

There are three methods to install golang-github-gorilla-mux-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-gorilla-mux-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-gorilla-mux-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-gorilla-mux-dev

Install golang-github-gorilla-mux-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-gorilla-mux-dev using apt by running the following command:

sudo apt -y install golang-github-gorilla-mux-dev

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

sudo aptitude -y install golang-github-gorilla-mux-dev

How To Uninstall golang-github-gorilla-mux-dev on Kali Linux

To uninstall only the golang-github-gorilla-mux-dev package we can use the following command:

sudo apt-get remove golang-github-gorilla-mux-dev

Uninstall golang-github-gorilla-mux-dev And Its Dependencies

To uninstall golang-github-gorilla-mux-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-gorilla-mux-dev

Remove golang-github-gorilla-mux-dev Configurations and Data

To remove golang-github-gorilla-mux-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge golang-github-gorilla-mux-dev

Remove golang-github-gorilla-mux-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge golang-github-gorilla-mux-dev

Dependencies

golang-github-gorilla-mux-dev have the following dependencies:

References

Summary

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