How To Install golang-github-jmoiron-sqlx-dev on Kali Linux
Introduction
In this tutorial we learn how to install golang-github-jmoiron-sqlx-dev on Kali Linux.
What is golang-github-jmoiron-sqlx-dev
golang-github-jmoiron-sqlx-dev is:
sqlx is a library which provides a set of extensions on Go’s standard database/sql library. The sqlx versions of sql.DB, sql.TX, sql.Stmt, et al. all leave the underlying interfaces untouched, so that their interfaces are a superset on the standard ones. This makes it relatively painless to integrate existing codebases using database/sql with sqlx.
Major additional concepts are:
- Marshal rows into structs (with embedded struct support), maps, and slices
- Named parameter support including prepared statements
- Get and Select to go quickly from query to struct/slice
There are three methods to install golang-github-jmoiron-sqlx-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-jmoiron-sqlx-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install golang-github-jmoiron-sqlx-dev using apt-get by running the following command:
sudo apt-get -y install golang-github-jmoiron-sqlx-devInstall golang-github-jmoiron-sqlx-dev Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install golang-github-jmoiron-sqlx-dev using apt by running the following command:
sudo apt -y install golang-github-jmoiron-sqlx-devInstall golang-github-jmoiron-sqlx-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 updateAfter updating apt database, We can install golang-github-jmoiron-sqlx-dev using aptitude by running the following command:
sudo aptitude -y install golang-github-jmoiron-sqlx-devHow To Uninstall golang-github-jmoiron-sqlx-dev on Kali Linux
To uninstall only the golang-github-jmoiron-sqlx-dev package we can use the following command:
sudo apt-get remove golang-github-jmoiron-sqlx-devUninstall golang-github-jmoiron-sqlx-dev And Its Dependencies
To uninstall golang-github-jmoiron-sqlx-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-jmoiron-sqlx-devRemove golang-github-jmoiron-sqlx-dev Configurations and Data
To remove golang-github-jmoiron-sqlx-dev configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge golang-github-jmoiron-sqlx-devRemove golang-github-jmoiron-sqlx-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-jmoiron-sqlx-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-jmoiron-sqlx-devDependencies
golang-github-jmoiron-sqlx-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install golang-github-jmoiron-sqlx-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.