Windows10に go言語をアップデートする方法
操作方法
1,「ここに入力して検索」欄に「power」と入力します。
2,「Windows PowerShell」を選択し,「管理者として実行する」をクリックします。
3,chocolateyバージョン確認
> choco list -l
Chocolatey v0.10.15
chocolatey 0.10.15
1 packages installed.
4,go言語アップデート
> choco upgrade golang
Chocolatey v0.10.15
Upgrading the following packages:
golang
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 'https://golang.org/dl/go1.15.8.windows-amd64.msi’
Progress: 100% – Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\golang\1.15.8\go1.15.8.windows-amd64.msi (115.33 MB).
Download of go1.15.8.windows-amd64.msi (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