windows scoop 安装

For Admin

Installation under the administrator console has been disabled by default for security considerations. If you know what you are doing and want to install Scoop as administrator. Please download the installer and manually execute it with the -RunAsAdmin parameter in an elevated console. Here is the example:

irm get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin [-OtherParameters ...]
# I don't care about other parameters and want a one-line command
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
# 更换scoop的repo地址
scoop config SCOOP_REPO "https://gitee.com/glsnames/scoop-installer"
# 拉取新库地址
scoop update

 scoopInstaller: scoop国内镜像优化库,能够加速scoop安装及bucket源文件,无需用户设置代理。内置加速站有调用次数限制,请勿提取滥用。 镜像频率:12小时。 (gitee.com)

ScoopInstaller/Install: 📥 Next-generation Scoop (un)installer (github.com)

用户安装的程序和scoop本身位于C:\Users<user>\scoop。全局安装的程序(–global)位于C:\ProgramData\scoop。可以通过环境变量更改这些设置。具体步骤如下:

将Scoop安装到自定义目录(命令行方式)
$env:SCOOP='D:\Applications\Scoop'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
1
2
将Scoop配置为将全局程序安装到自定义目录 SCOOP_GLOBAL(命令行方式)
$env:SCOOP_GLOBAL='D:\GlobalScoopApps'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')

 

C:\Users\administrator\scoop 下的文件夹拷贝到D:\Applications\Scoop下

 scoop install aria2


Installing 'aria2' (1.37.0-1) [64bit] from main bucket
proxy: https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip
aria2-1.37.0-win-64bit-build1.zip (2.4 MB) [=============================================================================================================] 100%
Checking hash of aria2-1.37.0-win-64bit-build1.zip ... ok.
Extracting aria2-1.37.0-win-64bit-build1.zip ... done.
Linking D:\Applications\Scoop\apps\aria2\current => D:\Applications\Scoop\apps\aria2\1.37.0-1
Creating shim for 'aria2c'.
Adding D:\Applications\Scoop\shims to your path.
'aria2' (1.37.0-1) was installed successfully!

  • 8
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值