@dume2007
2017-02-27T10:54:25.000000Z
字数 695
阅读 2674
windows
chocolatey
powershell
yum
apt-get
Windows用户的福音!Linux用户习惯了apt-get
,yum
,Mac用户习惯了brew
,现在windows也有了自己的包管理工具,这就是Chocolatey。
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
开始菜单,搜索powershell,open it
然后在命令窗口,执行命令:
set-executionpolicy remotesigned
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
#安装软件包
choco install docker
choco install gradle
#搜索软件包
choco search nodejs
#升级软件包
choco upgrade chocolatey
#卸载软件包
choco uninstall git
安装gradle示例: