Windows10に go言語をアップデートする方法



2,「Windows PowerShell」を選択し,「管理者として実行する」をクリックします。

> choco list -l
Chocolatey v0.10.15
chocolatey 0.10.15
1 packages installed.

> choco upgrade golang
Chocolatey v0.10.15
Upgrading the following packages:
By upgrading you accept licenses for the packages.
golang is not installed. Installing…
Progress: Downloading golang 1.15.8… 100%
Progress: Downloading golang 1.15.8… 100%

golang v1.15.8 [Approved]
golang package files upgrade completed. Performing other installation steps.
The package golang wants to run 'chocolateyInstall.ps1’.
Note: If you don’t run this script, the installation will fail.
Note: To confirm automatically next time, use '-y’ or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint):y

Downloading golang 64 bit
from '’
Progress: 100% – Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\golang\1.15.8\ (115.33 MB).
Download of (115.33 MB) completed.
Hashes match.
Installing golang…
golang has been installed.
golang may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The upgrade of golang was successful.
Software installed as 'msi’, install location is likely default.

Chocolatey upgraded 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

5 バージョンの確認

>go version
go version go1.15.8 windows/amd64


Posted by arkgame