Windows 11安装scoop | 您所在的位置:网站首页 › scoop可数吗 › Windows 11安装scoop |
一、准备工作1、更改 powershell 脚本执行权限Set-ExecutionPolicy RemoteSigned -scope CurrentUser 在windows中默认不允许任何脚本运行,所以我们可以使用 **Set-ExecutionPolicy**来改变PowerShell运行环境,共有4种运行权限,如下所示: Restricted——默认的设置,不允许任何script运行;AllSigned——只能运行经过数字证书签名的script;RemoteSigned——运行本地的script不需要数字签名,但是运行从网络上下载的script就必须要有数字签名(使用脚本安装scoop这一等级就行);Unrestricted——允许所有的脚本运行;2、科学上网ssr代理规则设置为 全局 系统代理设置为 全局二、安装 scoop3、使用线上脚本安装scoop Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')4、给scoop设置全局代理# 设置全局代理 scoop config proxy 127.0.0.1:1080 # 去除全局代理 或者给windows powershell设置socks代理 $env:HTTPS_PROXY="http://127.0.0.1:1080" $env:HTTP_PROXY="http://127.0.0.1:1080"
这样设置代理可以大大加速scoop安装和更新软件的速度,其主要原因是scoop大部分软件源都来自github,而国内访问github的速度太慢了 5、安装git和7zip用于更新scoopscoop install git6、更新 scoopscoop update 三、添加scoop bucket scoop bucket类似于软件集合源,不同的bucket包含不同的软件集合 7、添加 known bucketscoop bucket knownscoop bucket add extras scoop bucket add versions scoop bucket add nightlies scoop bucket add nirsoft scoop bucket add php scoop bucket add nerd-fonts scoop bucket add nonportable scoop bucket add java scoop bucket add games scoop bucket add jetbrains 8、添加一些特殊的bucketscoop bucket add dorado https://github.com/chawyehsu/dorado scoop bucket add Ash258 https://github.com/Ash258/Scoop-Ash258 scoop bucket add scoopet https://github.com/integzz/scoopet scoop bucket add 42wim https://github.com/42wim/scoop-bucket.git # raresoft 破解版软件集合 scoop bucket add raresoft https://github.com/L-Trump/scoop-raresoft9、浏览bucket listscoop bucket list
|
CopyRight 2018-2019 实验室设备网 版权所有 |