I'm new to Linux / Yum and just set up an AWS AMI instance. I'm trying to install Go 1.8. When I ran sudo yum install golang it installed version 1.6.3. How can I make it install version 1.8?

[ec2-user@ip-123 ~]$ yum --showduplicates list golang | expand
Loaded plugins: priorities, update-motd, upgrade-helper
Available Packages
golang.x86_64                   1.5.3-1.22.amzn1                    amzn-main   
golang.x86_64                   1.6.3-2.57.amzn1                    amzn-updates

Unless someone either adds Go 1.8 to a repo or builds a specific repo for it, you need to manually install it.

  • Thanks. So the latest version that was added to the repo was 1.6.3? – migu Mar 18 '17 at 18:40
  • 2
    Yes, exactly. Amazon Linux is based on RHEL, and in such environments, you rarely find this kind of new releases, instead everything is kept at a known state plus security fixes to ensure a stable environment. – Sven Mar 18 '17 at 18:42
  • 2
    Amazon Linux was forked from CentOS 5...almost a decade ago. It doesn't bear that much resemblance anymore. – Michael Hampton Mar 18 '17 at 22:43

I did not find any YUM repository that had dedicated packages in the version Go 1.8

Options that you would have in this case and that work, are compile via source code, as in these Howtos:

https://tecadmin.net/install-go-lang-on-centos/ https://tecadmin.net/install-go-on-centos/

Hope this helps.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.