惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

BlackHoleMax

用 Podman 在家用电脑搭私人 WebDAV 书签同步服务 中国校服外包产业与“统一着装”的意识形态机制 Vue 响应式原理:从 2.x 的 Object.defineProperty 到 3.x 的 Proxy 赛里斯教育臃肿、企业文化与社会不平等的结构性困境 C语言学习(帕斯卡三角) C语言学习(long和char强制类型转换) 意识形态国家机器(AIE)笔记 论阶级革命 论亲情 论盲目 当代唯分论,“什么书该读” 农场主与笨驴 如何成为一名安那其主义者 从Python3快速开始 正在施工🚧
windows平台最好的包管理器:scoop
BlackHoleMax · 2022-12-11 · via BlackHoleMax

对比

一个好的包管理器对于一个开发人员的重要性不言而喻,在windows平台上同类产品还有wingetChocolatey

winget是微软官方的包管理器,无国内镜像,使用起来急死个人,直接淘汰。Chocolatey 相比 scoop有gui,脚本数量多于scoop,但是其中不少已经没人维护或者不再更新。scoop安装软件包无须关联注册表,作为完全社区化的包管理器,其基本操作与 Chotolatey 类似,除了官方的仓库还有大量由第三方维护的仓库,其维护似乎完胜前者。

安装

  1. 在 PowerShell 中打开远程权限

    1
    Set-ExecutionPolicy RemoteSigned -scope CurrentUser
  2. 自定义用户(全局)Scoop 安装目录(可选)

    1
    2
    [environment]::setEnvironmentVariable('SCOOP', 'Scoop_Path', 'User')
    $env:SCOOP='Scoop_Path'

    $env:SCOOP_GLOBAL=’GlobalScoop_Path’

1
2
3
4
5
6
7
**个人比较喜欢全扔在D盘,如下:**

```powershell
[environment]::setEnvironmentVariable('SCOOP', 'D:\ScoopApps', 'User')
$env:SCOOP='D:\ScoopApps'
[environment]::setEnvironmentVariable('SCOOP_GLOBAL','D:\ScoopGlobalApps','Machine')
$env:SCOOP_GLOBAL='D:\ScoopGlobalApps'
  1. 官网提供的安装方式(国内无法使用):

    1
    irm get.scoop.sh | iex

    国内镜像:

    1
    2
    3
    iwr -useb https://gitee.com/glsnames/scoop-installer/raw/master/bin/install.ps1 | iex
    scoop config SCOOP_REPO 'https://gitee.com/glsnames/scoop-installer'
    scoop update

基本操作

  1. 添加软件仓库

    1
    scoop bucket add <仓库名称> <仓库地址(可选,之后从该ip获取更新)>
  2. 输入获取官方提供的仓库(按需添加)

    1
    scoop bucket known
  3. 个人力荐的仓库

    1
    2
    3
    4
    main[默认]
    extras
    versions
    nirsoft

    超多国产软件的仓库(如 wechat):

    1
    scoop bucket add dorado https://github.com/chawyehsu/dorado
  4. 软件包推荐

    必装(已安装git可以不选)

    1
    scoop install git 7zip 

    可选

    1
    2
    3
    4
    5
    6
    7
    8

    scoop install aria2

    scoop config aria2-enabled flase

    scoop install gow

    scoop install sudo
  5. 一些其它的操作:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14

    scoop update *

    scoop search <package>

    scoop cache rm *

    scoop cleanup *

    scoop list

    scoop status

    scoop checkup