How To Install govendor on Kali Linux
Introduction
In this tutorial we learn how to install govendor on Kali Linux.
What is govendor
govendor is:
govendor is a vendoring tool that fetches, annotates, and synchronizes dependencies for the Go programming language. It can be useful as a stand-alone tool even if it is not the primary vendoring tool. Inspection sub-commands such as “govendor list” and “govendor license” can be useful to find information on dependencies and their statuses. “govendor fetch” will update or add new dependencies directly from remotes. If you choose to not check in your dependency source code, use “govendor sync” to pull the correct revision into the vendor folder.
Frustrated by not being able to run “go test ./…” anymore? Run “govendor test +local” even if you do not use govendor elsewhere. Look into the different statuses that can be assigned to packages, they are useful. Still using godep or glock? Migrate them over including manifest file using “govendor migrate”.
There are three methods to install govendor 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 govendor Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install govendor using apt-get by running the following command:
sudo apt-get -y install govendorInstall govendor Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install govendor using apt by running the following command:
sudo apt -y install govendorInstall govendor 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 updateAfter updating apt database, We can install govendor using aptitude by running the following command:
sudo aptitude -y install govendorHow To Uninstall govendor on Kali Linux
To uninstall only the govendor package we can use the following command:
sudo apt-get remove govendorUninstall govendor And Its Dependencies
To uninstall govendor and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove govendorRemove govendor Configurations and Data
To remove govendor configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge govendorRemove govendor configuration, data, and all of its dependencies
We can use the following command to remove govendor configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge govendorDependencies
govendor have the following dependencies:
References
Summary
In this tutorial we learn how to install govendor package on Kali Linux using different package management tools: apt, apt-get and aptitude.