How to Install and Uninstall golang Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 02,2024

1. Install "golang" package

This is a short guide on how to install golang on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install golang

2. Uninstall "golang" package

Please follow the guidance below to uninstall golang on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the golang package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: golang
Priority: optional
Section: devel
Installed-Size: 10
Maintainer: Ubuntu Developers
Architecture: all
Source: golang-defaults
Version: 2:1.6-1ubuntu4
Depends: golang-1.6, golang-doc (>= 2:1.6-1ubuntu4), golang-go (>= 2:1.6-1ubuntu4), golang-src (>= 2:1.6-1ubuntu4)
Filename: pool/main/g/golang-defaults/golang_1.6-1ubuntu4_all.deb
Size: 2766
MD5sum: 04bb974a53de05a9287365c78f35ac0e
SHA1: 0ccde6df84ee2b9dcbea135fcf9718857529b54a
SHA256: 5be32ce9cf2b94090bd38db1d288658c38cb241da2ea04561c91f8fc9b805277
Description-en: Go programming language compiler - metapackage
The Go programming language is an open source project to make
programmers more productive. Go is expressive, concise, clean, and
efficient. Its concurrency mechanisms make it easy to write programs
that get the most out of multicore and networked machines, while its
novel type system enables flexible and modular program construction.
Go compiles quickly to machine code yet has the convenience of
garbage collection and the power of run-time reflection. It's a
fast, statically typed, compiled language that feels like a
dynamically typed, interpreted language.
.
This package is a metapackage that, when installed, guarantees
that (most of) a full Go development environment is installed.
Description-md5: 8650a23f44e2d60a785ad3123733d6d8
Homepage: https://golang.org
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m