首页 > 解决方案 > 为什么我的 `brew list` 会被填充到未知库中,我该如何摆脱它们?

问题描述

我的 Mac 已经 1 个月大了,我一直在尽我所能安装brewbrew cask保持一切井井有条,以便能够完全卸载不必要的软件。Brew cask list 似乎没问题,只列出了我实际安装的库。我已经安装了大约 10 个库brew install。为什么我的列表现在是这个样子???如何在不破坏内容的情况下摆脱不必要的库?

adns            gettext         lame            libgpg-error        libtiff         mongodb-community   openjpeg        readline        theora          yarn
aom         giflib          leptonica       libidn2         libunistring        mongodb-community-shell openssl@1.1     ripgrep         uchardet        z
cairo           glib            libarchive      libksba         libusb          mujs            opus            rtmpdump        unbound         zimg
flac            gmp         libass          libogg          libvidstab      ncurses         p11-kit         rubberband      vapoursynth     zsh
fontconfig      gnutls          libassuan       libpng          libvorbis       nettle          pcre            sdl2            webp            zsh-completions
freetype        graphite2       libbluray       libsamplerate       libvpx          node            pcre2           snappy          x264            zsh-git-prompt
frei0r          harfbuzz        libevent        libsndfile      little-cms2     node@10         pinentry        speex           x265            zsh-syntax-highlighting
fribidi         icu4c           libffi          libsoxr         lua@5.1         npth            pixman          sqlite          xvid
gdbm            jpeg            libgcrypt       libtasn1        lzo         opencore-amr        python          tesseract       xz

标签: homebrew

解决方案


一些公式需要或依赖于其他公式。您可以查看哪些其他公式formula X取决于:

brew deps X

您可以通过以下方式查看需要哪些其他公式formula X

brew uses X --installed

你可以看到没有人依赖的公式:

brew leaves

通常,您可以尝试删除任何公式,因为它不会删除其他东西所需的任何内容,除非您使用:

brew rm --ignore-dependencies  ...

推荐阅读