Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused by cleanup #1625

Open
carrete opened this issue Feb 27, 2025 · 5 comments
Open

Confused by cleanup #1625

carrete opened this issue Feb 27, 2025 · 5 comments

Comments

@carrete
Copy link

carrete commented Feb 27, 2025

$ brew bundle --global cleanup
Would uninstall formulae:
awk            isl            libmpc         gcc            gdk-pixbuf     pkgconf        jpeg           libgccjit      librsvg        texinfo        tree-sitter    zlib
Run `brew bundle cleanup --force` to make these changes.
$ brew uninstall gcc
Error: Refusing to uninstall /usr/local/Cellar/gcc/14.2.0_1
because it is required by emacs-plus@30 and libgccjit, which are currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies gcc

Why does cleanup think gcc should be uninstalled if it's required by other packages?

Also, some of these packages can be uninstalled, like awk. Perhaps packages should be uninstalled individually and then only report those which really couldn't be uninstalled?

Thanks!

@MikeMcQuaid
Copy link
Member

Why does cleanup think gcc should be uninstalled if it's required by other packages?

It's unclear from your output. What OS are you on? What's in your Brewfile?

Also, some of these packages can be uninstalled, like awk. Perhaps packages should be uninstalled individually and then only report those which really couldn't be uninstalled?

That's an option but not sure it would fix your problem?

@carrete
Copy link
Author

carrete commented Feb 27, 2025

macOS Ventura, Intel

https://gitlab.com/tvaughan/dotfiles/-/blob/main/tvaughan/.Brewfile?ref_type=heads

Correct, it wouldn't solve my problem, but at least those packages that could be removed would be removed

@MikeMcQuaid
Copy link
Member

@carrete Is that Brewfile handcrafted or from brew bundle dump? If you brew bundle dump it: does it include gcc or not?

@carrete
Copy link
Author

carrete commented Feb 27, 2025

Handcrafted. brew bundle dump does not include gcc.

tap "d12frosted/emacs-plus"
tap "homebrew/bundle"
tap "homebrew/services"
tap "keys-pub/tap"
brew "libpng"
brew "xz"
brew "webp"
brew "jpeg-xl"
brew "aom"
brew "atuin"
brew "bash"
brew "openssl@3"
brew "bat"
brew "btop"
brew "glib"
brew "sqlite"
brew "[email protected]"
brew "coreutils"
brew "curl"
brew "direnv"
brew "gnutls"
brew "harfbuzz"
brew "leptonica"
brew "libass"
brew "[email protected]"
brew "tesseract"
brew "ffmpeg"
brew "findutils"
brew "gawk"
brew "git"
brew "git-lfs"
brew "gnu-sed"
brew "gnu-tar"
brew "grep"
brew "m4"
brew "pkgconf"
brew "htop"
brew "hugo"
brew "hunspell"
brew "isync"
brew "jq"
brew "make"
brew "mu"
brew "netdata", restart_service: :changed
brew "nghttp2"
brew "openjdk@21"
brew "openssh"
brew "pam-reattach"
brew "pandoc"
brew "pass"
brew "pinentry-mac"
brew "podman"
brew "poppler"
brew "prettier"
brew "ripgrep"
brew "rsync"
brew "shellcheck"
brew "shfmt"
brew "socat"
brew "tailwindcss"
brew "tmux"
brew "zsh"
brew "d12frosted/emacs-plus/emacs-plus@30"
cask "firefox"
cask "font-fira-code-nerd-font"
cask "ghostty"
cask "google-earth-pro"
cask "iina"
cask "jitsi-meet"
cask "keys"
cask "localsend"
cask "signal"
cask "transmission"
cask "xquartz"

@MikeMcQuaid
Copy link
Member

Not sure why this would be happening I'm afraid. Will leave open for now in case anyone else has ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants