How To Install golang-github-denisenkom-go-mssqldb-dev on Debian 12

Learn how to install golang-github-denisenkom-go-mssqldb-dev on Debian 12 with this tutorial. golang-github-denisenkom-go-mssqldb-dev is Microsoft SQL server driver written in go language

Introduction

In this tutorial we learn how to install golang-github-denisenkom-go-mssqldb-dev on Debian 12.

What is golang-github-denisenkom-go-mssqldb-dev

golang-github-denisenkom-go-mssqldb-dev is:

A pure Go MSSQL driver for Go’s database/sql package.

Features:

  • Can be used with SQL Server 2005 or newer
  • Can be used with Microsoft Azure SQL Database
  • Supports new date/time types: date, time, datetime2, datetimeoffset
  • Supports string parameters longer than 8000 characters
  • Supports encryption using SSL/TLS
  • Supports SQL Server and Windows Authentication
  • Supports Single-Sign-On on Windows
  • Supports connections to AlwaysOn Availability Group listeners
  • Supports query notifications

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

sudo apt-get -y install golang-github-denisenkom-go-mssqldb-dev

Install golang-github-denisenkom-go-mssqldb-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install golang-github-denisenkom-go-mssqldb-dev

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

sudo aptitude -y install golang-github-denisenkom-go-mssqldb-dev

How To Uninstall golang-github-denisenkom-go-mssqldb-dev on Debian 12

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

sudo apt-get remove golang-github-denisenkom-go-mssqldb-dev

Uninstall golang-github-denisenkom-go-mssqldb-dev And Its Dependencies

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

sudo apt-get -y autoremove golang-github-denisenkom-go-mssqldb-dev

Remove golang-github-denisenkom-go-mssqldb-dev Configurations and Data

To remove golang-github-denisenkom-go-mssqldb-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge golang-github-denisenkom-go-mssqldb-dev

Remove golang-github-denisenkom-go-mssqldb-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge golang-github-denisenkom-go-mssqldb-dev

Dependencies

golang-github-denisenkom-go-mssqldb-dev have the following dependencies:

References

Summary

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