V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ChrisFreeMan
V2EX  ›  程序员

各位大佬, Homebrew 有没有类似于 pipdeptree 这样的工具列出所有的安装的工具的依赖树,方便清理无用的应用

  •  
  •   ChrisFreeMan · 2022-04-19 19:59:21 +08:00 · 1417 次点击
    这是一个创建于 947 天前的主题,其中的信息可能已经有所发展或是发生改变。

    类似这样

    {19:57}~ ➭ pipdeptree 
    flake8==4.0.1
      - mccabe [required: >=0.6.0,<0.7.0, installed: 0.6.1]
      - pycodestyle [required: >=2.8.0,<2.9.0, installed: 2.8.0]
      - pyflakes [required: >=2.4.0,<2.5.0, installed: 2.4.0]
    mypy==0.931
      - mypy-extensions [required: >=0.4.3, installed: 0.4.3]
      - tomli [required: >=1.1.0, installed: 2.0.0]
      - typing-extensions [required: >=3.10, installed: 4.0.1]
    Pillow==9.0.1
    pip-autoremove==0.10.0
      - pip [required: Any, installed: 22.0.3]
      - setuptools [required: Any, installed: 58.1.0]
    pipdeptree==2.2.1
      - pip [required: >=6.0.0, installed: 22.0.3]
    pygame-gui==0.6.4
      - pygame [required: >=2.0.1, installed: 2.1.2]
      - python-i18n [required: >=0.3.9, installed: 0.3.9]
    pyinstaller==4.8
      - altgraph [required: Any, installed: 0.17.2]
      - macholib [required: >=1.8, installed: 1.15.2]
        - altgraph [required: >=0.15, installed: 0.17.2]
      - pyinstaller-hooks-contrib [required: >=2020.6, installed: 2021.5]
      - setuptools [required: Any, installed: 58.1.0]
    rumps==0.3.0
      - pyobjc-framework-Cocoa [required: Any, installed: 8.1]
        - pyobjc-core [required: >=8.1, installed: 8.1]
    toga==0.3.0.dev32
      - toga-cocoa [required: ==0.3.0.dev32, installed: 0.3.0.dev32]
        - rubicon-objc [required: >=0.3.0, installed: 0.4.2]
        - toga-core [required: ==0.3.0.dev32, installed: 0.3.0.dev32]
          - travertino [required: >=0.1.3, installed: 0.1.3]
    
    8 条回复    2022-04-20 16:43:48 +08:00
    ruanimal
        1
    ruanimal  
       2022-04-19 21:20:04 +08:00
    关注。。
    twing37
        2
    twing37  
       2022-04-19 21:26:45 +08:00   ❤️ 1
    ngn999
        3
    ngn999  
       2022-04-19 21:26:51 +08:00   ❤️ 1
    brew ls 可以列出顶层的包, 不想要的, 你直接 uninstall, 然后`brew autoremove`能把用不到的依赖给清理掉.
    lovedoing
        4
    lovedoing  
       2022-04-19 21:30:15 +08:00   ❤️ 1
    rmtree
    ChrisFreeMan
        5
    ChrisFreeMan  
    OP
       2022-04-19 21:46:59 +08:00 via iPhone
    @twing37
    @ngn999
    @lovedoing
    感谢,我明天试下
    tbxark
        6
    tbxark  
       2022-04-19 22:02:00 +08:00   ❤️ 4
    brew deps --tree --installed
    ChrisFreeMan
        7
    ChrisFreeMan  
    OP
       2022-04-20 11:12:46 +08:00
    @tbxark 谢谢兄弟,正是我要的
    Mutoo
        8
    Mutoo  
       2022-04-20 16:43:48 +08:00
    之前用过一个可视化的,更直观一点
    https://github.com/martido/homebrew-graph
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1030 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:38 · PVG 03:38 · LAX 11:38 · JFK 14:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.