像linux一样 apt-get 或者 yum
在windows也有包安装器
打开powershell
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')
SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
或者
打开powershell
在 PowerShell 中输入下面内容,保证允许本地脚本的执行:
set-executionpolicy remotesigned -scope currentuser
然后执行下面语句进行安装:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
比如安装
scoop install curl