在 Windows 系统中使用 Scoop
Scoop 专注于开源应用,使用命令行式安装软件。 [Scoop 官网]
Scoop 优点
默认安装路径:在用户目录下 ~/scoop/ 文件夹中。
不会路径污染。
没有烦人的窗口引导安装。
比包管理更易于使用。Scoop 不是包管理器。读取 JSON 文件信息,内中描述如何安装软件和相关依赖项。PowerShell 终端最低需要 5.1 版本。
如何安装1
第一种方式-默认安装目录,在用户目录下 ~/scoop/ 文件夹中-官方默认
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression第二种方式-自定义安装目录-推荐使用
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin -ScoopDir 'D:\Applications\Scoop' -ScoopGlobalDir 'D:\Applications\GlobalScoopApps' -NoProxy
scoop help
scoop install lessmsi
scoop config use_lessmsi true
scoop install git给 Scoop 仓库和 bucket 换南大的镜像源
scoop config scoop_repo https://mirror.nju.edu.cn/git/scoop.git
scoop bucket add main https://mirror.nju.edu.cn/git/scoop-main.git
scoop bucket add extras https://mirror.nju.edu.cn/git/scoop-extras.git
scoop bucket add versions https://mirror.nju.edu.cn/git/scoop-versions.git
scoop bucket add nerd-fonts https://mirror.nju.edu.cn/git/scoop-nerd-fonts.git
scoop bucket add nonportable https://mirror.nju.edu.cn/git/scoop-nonportable.git
scoop bucket add java https://mirror.nju.edu.cn/git/scoop-java.git更新历史
20260902 修订,增加 给 Scoop 仓库和 bucket 换南大的镜像源 20260822 修订,更新第二种自定义安装目录方法