How to Install and Uninstall gopls Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 09,2024

1. Install "gopls" package

In this section, we are going to explain the necessary steps to install gopls on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install gopls

2. Uninstall "gopls" package

This guide covers the steps necessary to uninstall gopls on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove gopls $ sudo apt autoclean && sudo apt autoremove

3. Information about the gopls package on Ubuntu 21.04 (Hirsute Hippo)

Package: gopls
Architecture: amd64
Version: 1:0.0~git20201121.780cb80+ds-2
Built-Using: golang-1.15 (= 1.15.4-1ubuntu1), golang-github-google-go-cmp (= 0.5.2-1), golang-github-sergi-go-diff (= 1.1.0-1), golang-github-yuin-goldmark (= 1.2.1-1), golang-golang-x-mod (= 0.2.0-2), golang-golang-x-net (= 1:0.0+git20201031.ff519b6+dfsg-1), golang-golang-x-sync (= 0.0~git20190911.cd5d95a-1), golang-golang-x-xerrors (= 0.0~git20191204.9bdfabe-1), golang-honnef-go-tools (= 2020.1-4), golang-mvdan-gofumpt (= 0.0~git20201107.a024667-2), golang-mvdan-xurls (= 2.2.0-2), golang-toml (= 0.3.1-1)
Priority: optional
Section: universe/golang
Source: golang-golang-x-tools
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 15876
Depends: libc6 (>= 2.32)
Breaks: golang-golang-x-tools (<< 1:0.0~git20201116.6f6c72a+ds-3)
Replaces: golang-golang-x-tools (<< 1:0.0~git20201116.6f6c72a+ds-3)
Filename: pool/universe/g/golang-golang-x-tools/gopls_0.0~git20201121.780cb80+ds-2_amd64.deb
Size: 4720816
MD5sum: ed81eac5d2eeb0f7c4be1ae159ced145
SHA1: 458d46e530837823f3f921af09a3a7d550d85c45
SHA256: 0419e200d5ca5ebbf6f771974c1535aea83006e197f9f9fb8d7da593c1f7962a
SHA512: adc691800c2e858c51483efb7a26c29e334fdac09087d16070deb9fd544574b38f490064f9c322d29ac2933b047309f0b2df8cc1e575b36959b0f85a4ad2671d
Homepage: https://golang.org/x/tools
Description-en: language server for the Go language
gopls (pronounced: "go please") is the official language server for the Go
language.
.
The Language Server Protocol allows any text editor to be extended with
IDE-like features.
Description-md5: 749faeba3b11444876eb862c4cfce0c3