Chocolatey!
Chocolateyをいまいち理解してなくて紹介されてからも使ってなかったけど、
思っていた以上に便利そうでびっくりした。
Chocolateyの使い方
まず、コマンドプロンプトに下記のコマンドを打ち込んでインストールします。
※最新のコマンドはChocolatey Galleryで確認してね※
C:\> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
インストールされたかを確認する
C:\> chocolatey version
下記のようにバージョン情報が出力されていればインストールできてます。
C:\>chocolatey version found : 0.9.8.27 name : chocolatey latestCompare : 000000000000.000000000009.000000000008.000000000027 verMessage : Latest version installed latest : 0.9.8.27 foundCompare : 000000000000.000000000009.000000000008.000000000027
実際にインストールする
今回はSublime Text2をインストールします。
C:\> cinst sublimetext2
インストールに成功していれば下記のような出力がされます。
C:\>cinst sublimetext2 Chocolatey (v0.9.8.27) is installing 'sublimetext2' and dependencies. By install ing you accept the license for 'sublimetext2' and each dependency you are instal ling. sublimetext2 v2.0.2.2221 Downloading sublimetext2 64 bit from 'http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64%20Setup. exe' Installing sublimetext2... sublimetext2 has been installed. sublimetext2 has finished successfully! The chocolatey gods have answered your r equest! Finished installing 'sublimetext2' and dependencies - if errors not shown in con sole, none detected. Check log for errors if unsure.
コマンド一覧
インストール
C:\>cinst packageName
アンインストール
C:\>cuninst packageName
パッケージのアップデート
C:\>cup packageName
個人PCを3月に買って以来Eclipseくらいしか入れてないので
Chocolateyを活用していきたいです。
個人的に甘そうな名前が好きです。