Skip to content

Instantly share code, notes, and snippets.

@mcbenjemaa
Created November 3, 2020 14:21
Show Gist options
  • Save mcbenjemaa/4cf17a469cc8f0b9985d5d13dcbc1819 to your computer and use it in GitHub Desktop.
Save mcbenjemaa/4cf17a469cc8f0b9985d5d13dcbc1819 to your computer and use it in GitHub Desktop.

Revisions

  1. mcbenjemaa created this gist Nov 3, 2020.
    31 changes: 31 additions & 0 deletions update-go.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # How to update the Go version

    ## Remove the existing go package

    ```
    sudo rm -rvf /usr/local/go
    ```

    ## Install the new Go version
    Download specific binary release for your system

    https://golang.org/dl/


    ## Extract the archive file

    ```
    sudo tar -xvf go1.14.linux-amd64.tar.gz
    ```

    ## Move the extracted file to desired location on the system

    ```
    sudo mv go /usr/local
    ```

    ## Verify the go version

    ```
    go version
    ```