一、scoop安装
打开PowerShell,准备安装scoop
输入下面语句:
set-executionpolicy remotesigned -scope currentuser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
安装scoop完成

二、简单使用
然后就可以使用scoop install 安装需要的资源,下载完成后的资源会在类似 C:\Users\admin\scoop\apps 的位置
scoop 或 scoop help可查看用法和说明

安装git、openssh:(之前装过git,所以有点不明白这里需不需要,或许可以跳过吧,反正最后还是给卸载了这里的git),然后重启
scoop install git
scoop install openssh

然后还需要添加软件源,不然会有些软件能search到但是不能install.
scoop bucket add extras
scoop bucket add versions
最后想要安装其他的软件源,直接安装就好了(应该是这样子)
三、部分报错解决办法:
1. 以下这种可能需要更新PowerShell

2. 如下安装erlang时出现“请求的操作需要提升”的报错:
因为权限不够,所以使用管理员身份打开Power Shell,然后进行安装即可
PS C:\Users\admin> scoop install erlang
Installing 'erlang' (22.0) [64bit]
Loading otp_win64_22.0.exe from cache
Checking hash of otp_win64_22.0.exe ... ok.
Running installer... error.
ERROR 使用“0”个参数调用“Start”时发生异常:“请求的操作需要提升。”
Installation aborted. You might need to run 'scoop uninstall erlang' before trying again.
powershell使用:
查看版本:$PSVersionTable
相关官方文档见:https://github.com/lukesampson/scoop/wiki
文档参考:https://zhuanlan.zhihu.com/p/55134054
|