sylarc
V2EX  ›  macOS

小白请教 brew 占用空间 13G,正常吗?

  •  
  •   sylarc · Nov 30, 2022 · 4375 views
    This topic created in 1437 days ago, the information mentioned may be changed or developed.

    用腾讯柠檬扫描硬盘空间占用,发现 homebrew-core 文件夹 13G 多,详细是 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/objects/pack

    v2 小白,不会发图,试一下 2022-11-30-11-46-01.png

    10 replies  •  2022-12-02 10:21:46 +08:00
    ST0RMTR00PER
    ST0RMTR00PER
    Nov 30, 2022
    1
    虽然不知道是什么,试试:

    brew cleanup # 清理所有包的旧版本
    brew cleanup $FORMULA # 清理指定包的旧版本
    brew cleanup -n # 查看可清理的旧版本包,不执行实际操作
    sylarc
    sylarc
    OP
    Nov 30, 2022
    2
    用第一条,第三条,没有反应
    wu67
    wu67
    Nov 30, 2022
    3
    cleanup 删的是通过 brew 安装的应用包吧...
    core 是 brew 的核心程序.

    试试卸载 brew 重装吧, 这都不知道几个版本之前的了, 现在的 brew 应该是在 /opt 目录下才对...
    sylarc
    sylarc
    OP
    Nov 30, 2022
    4
    谢谢两位回复,正研究重新安装

    系统一真是升级的,没全新安装
    YY
    YY
    Nov 30, 2022
    5
    ==> This operation has freed approximately 838.4MB of disk space.
    xtinput
    xtinput
    Nov 30, 2022
    6
    我的 homebrew-core 文件夹 700M ,M1Max
    miusmile
    miusmile
    Nov 30, 2022
    7
    @xtinput 怎么看 homebrew-core 文件夹大小
    pigzilla
    pigzilla
    Nov 30, 2022
    8
    cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/
    git gc
    2NUT
    2NUT
    Dec 1, 2022
    9
    刚看了我的 我也就装了 十多个软件

    1.1G /opt/homebrew/
    sylarc
    sylarc
    OP
    Dec 2, 2022
    10
    重新装了,现在 1G 多了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3592 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 04:16 · PVG 12:16 · LAX 20:16 · JFK 23:16
    ♥ Do have faith in what you're doing.