Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to install specific version of Go in Ubuntu using snap

Trying to install go version 1.16 using snap but not able to. can someone help.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

  1. you can run snap info go, which gives you a list of go versions.

    `sudo snap info go`
    
  2. Then you can install your preferred version with –channel like this.

    sudo snap install go --channel=1.6/stable --classic

This will also work for upgrade / downgrade to specific version after installation. For example you want to downgrade from 1.17 go version to 1.16

  `sudo snap refresh go --channel=1.6/stable --classic`
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading