Golang on Linux How to install it

0 votes
Hello, I want to install Golang on my ubuntu machine using terminal. Please suggest how can I do it?
Mar 1, 2019 in Others by Abhi
986 views

1 answer to this question.

0 votes

Hey @Abhi, if you want to install Golang on Ubuntu, follow these steps one by one:

1. Download the latest binary for Go using curl command:

>>curl -O https://storage.googleapis.com/golang/go1.9.3.linux-amd64.tar.gz


2.  Now verify the .tar file using following commands,

>>sha256sum go1.9.3.linux-amd64.tar.gz

3. Then use this command to extract the .tar file:

>>tar -xvf go1.9.3.linux-amd64.tar.gz

4. Now move the Go directory to usr/local using following command:

>>sudo chown -R root:root ./go
>>sudo mv go /usr/local

5. Finally, adjust the Path Variable using .profile/ file and save it;

>>export GOPATH=$HOME/go
>>export PATH=$PATH:/usr/local/go/bin:$PATH/bin
>>source ~/.profile

6. And you have successfully installed golang on your machine. To check write the following command in terminal: 

>>go version


 

answered Mar 1, 2019 by Anvi
• 14,150 points

Related Questions In Others

0 votes
1 answer

how to install Amazon AWS Command Line Interface tools on Bamboo build agent.

Hi@Abhishek, You need to set the following parameters ...READ MORE

answered Apr 6, 2020 in Others by MD
• 95,460 points
1,852 views
0 votes
1 answer

How to install a GUI on Amazon AWS EC2 or EMR with the Amazon AMI

The top-level script for installing the GUI ...READ MORE

answered Mar 9, 2022 in Others by gaurav
• 23,260 points
1,041 views
0 votes
1 answer

How do I get it to select a single row based on the value?

Try this: Sub MoveBasedOnValue2() Dim ...READ MORE

answered Jan 20, 2023 in Others by narikkadan
• 63,600 points
591 views
0 votes
1 answer

How do I install Ruby on Rails?

Hi @Anvi, what @Pratibha has mentioned is ...READ MORE

answered Mar 1, 2019 in Others by Abha
• 28,140 points
1,406 views
0 votes
1 answer
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,268 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,180 views
0 votes
1 answer

Install Python on Ubuntu

@Abha you are right about pre-installation of python, ...READ MORE

answered Mar 1, 2019 in Python by Pratibha
• 3,690 points
1,143 views
0 votes
1 answer

How to do Installation of Ruby on Rails on Linux (Ubuntu)?

Hi Pratibha, installing ROR on ubuntu is ...READ MORE

answered Mar 1, 2019 in Others by Anvi
• 14,150 points
1,895 views
0 votes
1 answer

How to run C# code on Ubuntu

Hey @Abha, you can create and run ...READ MORE

answered Mar 1, 2019 in Others by Anvi
• 14,150 points
6,462 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP