How To Install golang-github-svent-go-flags-dev on Kali Linux
Introduction
In this tutorial we learn how to install golang-github-svent-go-flags-dev
on Kali Linux.
What is golang-github-svent-go-flags-dev
golang-github-svent-go-flags-dev is:
This library provides similar functionality to the builtin flag library of go, but provides much more functionality and nicer formatting. Supported features are:
- Options with short names (-v)
- Options with long names (–verbose)
- Options with and without arguments (bool v.s. other type)
- Options with optional arguments and default values
- Multiple option groups each containing a set of options
- Generate and print well-formatted help message
- Passing remaining command line arguments after – (optional)
- Ignoring unknown command line options (optional)
- Supports -I/usr/include -I=/usr/include -I /usr/include option argument specification
- Supports multiple short options -aux
- Supports all primitive go types (string, int{8..64}, uint{8..64}, float)
- Supports same option multiple times (can store in slice or last option counts)
- Supports maps
- Supports function callbacks
- Supports namespaces for (nested) option groups
There are three methods to install golang-github-svent-go-flags-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-svent-go-flags-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-svent-go-flags-dev
using apt-get
by running the following command:
sudo apt-get -y install golang-github-svent-go-flags-dev
Install golang-github-svent-go-flags-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install golang-github-svent-go-flags-dev
using apt
by running the following command:
sudo apt -y install golang-github-svent-go-flags-dev
Install golang-github-svent-go-flags-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-svent-go-flags-dev
using aptitude
by running the following command:
sudo aptitude -y install golang-github-svent-go-flags-dev
How To Uninstall golang-github-svent-go-flags-dev on Kali Linux
To uninstall only the golang-github-svent-go-flags-dev
package we can use the following command:
sudo apt-get remove golang-github-svent-go-flags-dev
Uninstall golang-github-svent-go-flags-dev And Its Dependencies
To uninstall golang-github-svent-go-flags-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-svent-go-flags-dev
Remove golang-github-svent-go-flags-dev Configurations and Data
To remove golang-github-svent-go-flags-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge golang-github-svent-go-flags-dev
Remove golang-github-svent-go-flags-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-svent-go-flags-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-svent-go-flags-dev
Dependencies
golang-github-svent-go-flags-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install golang-github-svent-go-flags-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.