美文网首页Windows
在windows下使用choco作为包管理工具

在windows下使用choco作为包管理工具

作者: butterandfly | 来源:发表于2016-10-16 10:37 被阅读0次

注意:目前使用choco是需要翻墙的。

chocolatey是windows下的一个命令行的包管理工具,类似ubuntu的apt,或centos下的yum。

准备

在安装之前,你先要将你的powershell设置为允许执行远程脚本:

  • Running as administrator来打开PowerShell
  • 命令行里输入Set-ExecutionPolicy RemoteSigned

安装choco

详细请查阅官方文档,我是直接使用了最简单的PowerShell v3+ 的安装方式:

iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

PowerShell输入上面这代码然后enter。

装好了,然后呢?

然后你就能像ubuntu下apt-get那样安装你所需要的软件/包了,例如你想装个chrome:

choco install googlechrome

或者来个winrar:

choco install winrar

再来个nodejs?

choco install nodejs.install

更多可安装的包可以查看这个网址:https://chocolatey.org/packages

相关文章

网友评论

    本文标题:在windows下使用choco作为包管理工具

    本文链接:https://www.haomeiwen.com/subject/ffioyttx.html