使用scoop

安装

允许本地脚本执行

1
$ set-executionpolicy remotesigned -scope currentuser

自定义scoop安装路径

1
2
$ [environment]::setEnvironmentVariable('SCOOP','D:\scoop','User')
$ $env:SCOOP='D:\scoop'

执行安装脚本

1
$ iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
updatedupdated2020-05-252020-05-25