How to Install and Uninstall golang Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: December 26,2024

1. Install "golang" package

This tutorial shows how to install golang on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install golang

2. Uninstall "golang" package

Learn how to uninstall golang on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the golang package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: golang
Architecture: amd64
Version: 2:1.10~4ubuntu1
Priority: optional
Section: devel
Source: golang-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Go Compiler Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: golang-1.10, golang-doc (>= 2:1.10~4ubuntu1), golang-go (>= 2:1.10~4ubuntu1), golang-src (>= 2:1.10~4ubuntu1)
Filename: pool/main/g/golang-defaults/golang_1.10~4ubuntu1_amd64.deb
Size: 2896
MD5sum: fc06eee1d3a90f68163845a743c32009
SHA1: 561ce98439decd690ef3b29e0a6afa0a9c7c3504
SHA256: 7f7981c9c1d5f1789aac6ea07eddfef1b181aefdb0b9e73e5930e6d11005bfbc
Homepage: https://golang.org
Description: Go programming language compiler - metapackage
Description-md5: 8650a23f44e2d60a785ad3123733d6d8
Supported: 5y