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

推荐订阅源

博客园_首页
N
News and Events Feed by Topic
P
Privacy International News Feed
The Hacker News
The Hacker News
Schneier on Security
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
Security Latest
Security Latest
L
LINUX DO - 最新话题
阮一峰的网络日志
阮一峰的网络日志
Cisco Talos Blog
Cisco Talos Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
博客园 - 【当耐特】
博客园 - Franky
P
Privacy & Cybersecurity Law Blog
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
月光博客
月光博客
D
Docker
Webroot Blog
Webroot Blog
The GitHub Blog
The GitHub Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
W
WeLiveSecurity
S
Security Affairs
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Archives - TechRepublic
Security Archives - TechRepublic
Microsoft Azure Blog
Microsoft Azure Blog
C
CERT Recently Published Vulnerability Notes
B
Blog
L
Lohrmann on Cybersecurity
T
Threatpost
量子位
S
Schneier on Security
V
Visual Studio Blog
S
Securelist
T
The Exploit Database - CXSecurity.com
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
I
Intezer
Stack Overflow Blog
Stack Overflow Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
博客园 - 聂微东
小众软件
小众软件
罗磊的独立博客
雷峰网
雷峰网
Recorded Future
Recorded Future

Homebrew

分享两个我和小伙伴维护的第三方 Homebrew 仓库 - V2EX 同志们, brew 不支持 big sur 了,怎么搞 - V2EX 没有设置 Homebrew 清华源, brew 却从清华源下载? - V2EX 会自动更新的非 MAS 安装的 app 怎么用 brew cask 管理? - V2EX mac brew services nginx 开机启动失败,有遇到的老哥吗? - V2EX HOMEBREW_INSTALL_FROM_API 已经是默认设置了 - V2EX M1 MBP Ventura 上 MacVim 命令行启动后开新 Tab 崩溃 - V2EX 请教, mac 的 homebrew 用久了,怎么重置啊~ - V2EX Brew 装不上 ca-certificates - V2EX brew 下载过程怎么跳过已下载的依赖包? - V2EX homebrew 移除了对 mojave 的支持,结果现在安装啥都得编译安装,有的要几个小时才编译完,愁死了 - V2EX [M1 芯片] 安装最新版的 Homebrew 并替换成清华大学的源后无法安装软件 - V2EX Homebrew 正式支持 M1 - V2EX Install homebrew in native mode on Apple MacOS ARM (M1) - V2EX Homebrew 对 Apple Silicon 的支持状况 - V2EX Homebew on macOS Big Sur 兼容性问题 - V2EX Mac 终端运行“brew install xxx”过程中不显示下载进度条,怎么解决? - V2EX homebrew 安装相关 - V2EX brew 不能找到 pyenv 装的 Python - V2EX 关于用 Homebrew 安装 NGINX 并改成 80 端口启动 - V2EX [Homebrew]分享一下昨天刚知道的中科大源,顺便吐槽一下官方连个 mirror 列表都没得,不知海岸这边的疾苦吗?😭 - V2EX homebrew cask 国内镜像用哪个好? - V2EX 貌似清华的 homebrew mirror 挂了 - V2EX Homebrew 下周起将开始匿名收集用户使用的统计数据 - V2EX 如何修改源或者如何将使用本地源码包? - V2EX brew 对旧的系统不管不顾了吗? - V2EX 安装wget之后,仍然command not found - V2EX 在douban创建了一个homebrew的小组, 求关注 - V2EX Xcode, GCC, and Homebrew - V2EX 遇到源的网速慢的时候怎么办呀 - V2EX Homebrew使用问题 - V2EX
Homebrew 要求 unshallow 整个 repo - V2EX
lovestudykid · 2020-12-11 · via Homebrew

这是一个创建于 2011 天前的主题,其中的信息可能已经有所发展或是发生改变。

因为 Github/微软要求,为了避免昂贵的 shallow diff,所有用户都需要 unshallow 整个 repo 。brew update 的时候会报错直到 unshallow 。

看了下/usr/local/Homebrew/Library/Taps/占用空间已接近 1G,并且还会继续增长。为了节省计算资源,需要所有用户献出更多硬盘资源。Linux 上包管理器是怎么解决这个问题的?

附上 unshallow 的 commands

git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" fetch --unshallow

相关讨论: https://github.com/Homebrew/discussions/discussions/225

clrss

1

clrss      2020 年 12 月 11 日

linux 包管理器一般不保存包的元数据的历史..

我的 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core 才 220MB (已 unshallow).
cask 我没有 tap, 不明.

试了下 `git gc --prune=all --aggressive`

clrss

2

clrss      2020 年 12 月 11 日

花了 N 久, 变 190MB 了...

Kobayashi

3

Kobayashi      2020 年 12 月 11 日 via Android

Linux 下没有这种问题。Homebrew 操蛋地滥用 Github 。

huijiewei

4

huijiewei      2020 年 12 月 11 日

运行后提醒

fatal: 对于一个完整的仓库,参数 --unshallow 没有意义

lovestudykid

7

lovestudykid      2020 年 12 月 11 日

@clrss 多谢,有点担心会 break homebrew 。run 了一遍降到了 421M 。可能这就是 community 用 git 维护的代价,历史信息对普通用户来说根本没用,一点也不优雅...

Cbdy

12

Cbdy      2020 年 12 月 11 日 via Android

其实 HomeBrew 这种用法,算是是对 GitHub 的滥用了吧,历史记录对用户根本没有意义啊

clrss

13

clrss      2020 年 12 月 11 日

感觉更多的是 git 的 shallow 机制有待优化吧, 对于不带 merge 的线性历史, 后续的 fetch 应该不贵啊

cairnechen

14

cairnechen      2020 年 12 月 15 日

想问下这个 unshallow 操作会有什么风险吗?

mycang

15

mycang      2021 年 2 月 7 日

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
remote: Counting objects: 356812, done.
remote: Compressing objects: 100% (106828/106828), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

怎么办?不能 update