How to Install and Uninstall golang Package on Debian 12 (Bookworm)

Last updated: November 07,2024

1. Install "golang" package

This guide let you learn how to install golang on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install golang

2. Uninstall "golang" package

This is a short guide on how to uninstall golang on Debian 12 (Bookworm):

$ sudo apt remove golang $ sudo apt autoclean && sudo apt autoremove

3. Information about the golang package on Debian 12 (Bookworm)

Package: golang
Source: golang-defaults
Version: 2:1.19~1
Installed-Size: 12
Maintainer: Debian Go Compiler Team
Architecture: amd64
Depends: golang-1.19, golang-doc (>= 2:1.19~1), golang-go (>= 2:1.19~1), golang-src (>= 2:1.19~1)
Description: Go programming language compiler - metapackage
Description-md5: 8650a23f44e2d60a785ad3123733d6d8
Multi-Arch: same
Homepage: https://golang.org
Section: golang
Priority: optional
Filename: pool/main/g/golang-defaults/golang_1.19~1_amd64.deb
Size: 5744
MD5sum: 425da20b65235e7161c98555e27d9b06
SHA256: 77f834d5b1e6a106751d02fdd1dd2ed366a4ba522c0bffa903dc57f86f62b521