Windows环境下的Chocolatey安装使用

Chocolatey是一个软件包管理工具,类似于Ubuntu下面的apt-get,不过是运行在Windows环境下面

  • 电脑

  • Powershell

    方法/步骤

  1. 安装

    Chocolatey的安装需要:

    Powershell

    Internet链接

    下面的操作在Windows 7上面应该是没有问题的。以“管理员方式”打开一个命令行工具,输入下面的命令:

    @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin

    经过一段时间的等待,Chocolatey安装完毕。

  2. 使用

     

    举个栗子,你如果想安装7Zip,你可以在命令行输入:

    cinst 7Zip

    就会自动安装这个压缩软件。

    安装Node.js,输入:

    cinst node.js

    另外还可以安装IE10(Windows 7):

    cinst IE10

    安装Visual Studio 2013 Ultimate这个巨无霸也是可以的:

    cinst VisualStudio2013Ultimate

    软件列表,可以在Chocolatey的软件索引查到。

posted @ 2014-07-04 13:39  fxcl  阅读(1273)  评论(0编辑  收藏  举报