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\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!

你可能感兴趣的:(linux,运维,服务器)