1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Win10にてパッケージ管理(chocolatey)を使ってGo言語をインストール

Last updated at Posted at 2019-08-29

目的

  • WindowsでもLinuxのようにパッケージ管理を使ってソフトを管理したい

Chocolatey(パッケージ管理)のインストール

(以下、公式サイトの手順)

管理者権限でコマンドプロンプトを起動

image.png

インストール実行

コマンドプロンプトで以下を実行
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

ちなみに管理者権限でコマンドプロンプト起動しないと実行時に以下のエラーになります。
image.png

コマンドプロンプトでバージョン確認

コマンドプロンプトで以下を実行
C:\Windows\system32>choco
Chocolatey v0.10.15
Please run 'choco -?' or 'choco <command> -?' for help menu.

パッケージ管理からGo言語(Golang)のインストール

コマンドプロンプトで以下を実行
C:\Windows\system32>choco install golang

image.png

チョコってコマンドが個人的に好きです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?