在各种linux
发行版都有相应的软件包管理器,记得CentOs
下有yum
,Ubuntu
下有apt
。那windows下呢?有没有这么方便的东西?不要让我们寻找软件时都得去搜索引擎去寻找软件的官网,虽然windows
系的软件安装已经足够方便了。
答案是肯定的,那就是chocolatey
PowerShell
PowerShell
,您必须确保Get-ExecutionPolicy
不受限制(Restricted)。Get-ExecutionPolicy
如果返回的是Restricted
,继续运行下面的命令:
Set-ExecutionPolicy AllSigned
#或者
Set-ExecutionPolicy Bypass -Scope Process
最后运行下面命令:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
等待安装完成。
choco install packagename
choco uninstall packagename
这个命令就多了
list
、search
、find
查看命令功能解释:
choco [command] -help