How to install golang-1.7-go on Ubuntu 16.10 (Yakkety Yak)?

In this article we are going to learn the commands and steps to install golang-1.7-go package on Ubuntu 16.10.


 

Ads

Quick installation of golang-1.7-go:

Step 1: Update system:

	sudo apt-get update

Step 2: Install: golang-1.7-go

Ater updaing the OS run following command to install the packae:

	sudo apt-get install golang-1.7-go

Package Details

Package:golang-1.7-go
Version:1.7.1-2ubuntu1
Maintainer:Ubuntu Developers
Home page:https://golang.org
Description:Go programming language compiler, linker, compiled stdlib 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 provides an assembler, compiler, linker, and compiled libraries for the Go programming language. . Go supports cross-compilation, but as of Go 1.5, it is no longer necessary to pre-compile the standard library inside GOROOT for cross-compilation to work.
Distro:Ubuntu 16.10
Release:
Repo/Section:universe/devel

How to install golang-1.7-go on Ubuntu 16.10?

How to install golang-1.7-go on Ubuntu 16.10 (Yakkety Yak)?

First of all update your system with the command:

sudo apt-get update

Ads

Above command will download the package lists for Ubuntu 16.10 on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If golang-1.7-go is not installed on your compter then the command 'dpkg -L golang-1.7-go' will give followin error.

deepak@deepak-VirtualBox:~$ dpkg -L golang-1.7-go
dpkg-query: package 'golang-1.7-go' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$ 

Installing golang-1.7-go:

After system update use the following command to install golang-1.7-go:

sudo apt-get install golang-1.7-go

Above command will confirm before installing the package on your Ubuntu 16.10 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove golang-1.7-go from Ubuntu 16.10?

Now we will see the commands for uninstalling the golang-1.7-go from Ubuntu 16.10. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the golang-1.7-go following command is used:

sudo apt-get remove  golang-1.7-go

Following command is used to remove the golang-1.7-go package along with its dependencies:

sudo apt-get remove --auto-remove golang-1.7-go

This will remove golang-1.7-go and all its dependent packages which is no longer needed in the system.

Completely removing golang-1.7-go with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge golang-1.7-go

or you can use following command also:

sudo apt-get purge --auto-remove golang-1.7-go

Above command will remove all the configuration files and data associated with golang-1.7-go package. You can can't recover the delete data, so, use this command with care.