win10安装scoop以及增加仓库

简介

Scoop是优质的 Windows 包管理器。它不仅轻量,还将软件直接安装到我们的用户目录下,安装过程不需要申请管理员权限(UAC)也不会污染系统环境变量。

启动powershell之后,运行以下命令进行安装:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
PS C:\WINDOWS\system32> set-executionpolicy remotesigned -s cu

执行策略更改
执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险,如 https:/go.microsoft.com/fwlink/?LinkID=135170
中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
[Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为“N”): A
PS C:\WINDOWS\system32> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Initializing...
Downloading...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.

安装软件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PS C:\WINDOWS\system32> scoop install curl grep
Installing '7zip' (19.00) [64bit]
7z1900-x64.msi (1.7 MB) [======================================================================================] 100%
Checking hash of 7z1900-x64.msi ... ok.
Extracting 7z1900-x64.msi ... done.
Linking ~\scoop\apps\7zip\current => ~\scoop\apps\7zip\19.00
Creating shim for '7z'.
Creating shortcut for 7-Zip (7zFM.exe)
'7zip' (19.00) was installed successfully!
Installing 'curl' (7.64.1) [64bit]
curl-7.64.1-win64-mingw.tar.xz (2.0 MB) [======================================================================] 100%
Checking hash of curl-7.64.1-win64-mingw.tar.xz ... ok.
Extracting curl-7.64.1-win64-mingw.tar.xz ... done.
Linking ~\scoop\apps\curl\current => ~\scoop\apps\curl\7.64.1
Creating shim for 'curl'.
'curl' (7.64.1) was installed successfully!
Installing 'grep' (2.5.4) [64bit]
grep-2.5.4-bin.zip (441.2 KB) [================================================================================] 100%
Checking hash of grep-2.5.4-bin.zip ... ok.
grep-2.5.4-dep.zip (877.2 KB) [================================================================================] 100%
Checking hash of grep-2.5.4-dep.zip ... ok.
Extracting grep-2.5.4-bin.zip ... done.
Extracting grep-2.5.4-dep.zip ... done.
Linking ~\scoop\apps\grep\current => ~\scoop\apps\grep\2.5.4
Creating shim for 'grep'.
'grep' (2.5.4) was installed successfully!

安装目录是在C:\Users\系统用户名\scoop\apps下面。

另外还可以新增软件仓库repo,增强实用性。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
PS C:\Users\fangdm> scoop bucket known
extras
versions
nightlies
nirsoft
php
nerd-fonts
nonportable
java
games
jetbrains
PS C:\Users\fangdm> scoop bucket add nirsoft
Checking repo... ok
The nirsoft bucket was added successfully
  • 本文作者: wumingx
  • 本文链接: https://www.wumingx.com/tools/win10-scoop.html
  • 本文主题: win10安装scoop以及增加仓库
  • 版权声明: 本站所有文章除特别声明外,转载请注明出处!如有侵权,请联系我删除。
0%