How to purge Homebrew from system?

How would one completely purge Homebrew from Universal Blue images?

Would this break Aurora-DX or Bazzite-DX if removed?

Is it a simple as removing it via rpm-ostree, so it’s applied on all future updates?

Or, are there requirements installed via Homebrew that will break the system? If so, how do we find those packages?

You cannot remove Homebrew as it is part of the image build. It’s not a package that can just be removed (and if you use rpm-ostree remove package it won’t anyway remove the package, just hide it).

Homebrew is integral part of our images and will be in the future. We will also have plans to move the -dx image stuff away from the image and to as much as possible to brew.

What about disabling brew updates at least…

I have checked with brew list and I see I have no brew application installed. Like I understand there is silent background update every day, that automatically updates OS, flatpaks and brew application and similar logic is in ujust update. How to disable brew updates (by silent system update and ujust “update command”), to spare my network downloads and of course to spare brew servers from downloading files user does not need.

Maybe there should be some logic embedded like:

  • check if at least one brew application is installed (e.g. using `brew list`) and
  • if yes, then execute `brew update`

There is no point to make the updated more complex for something that doesn’t really affect anything.

If you don’t have brew packages, there will be nothing to update. Adding more “complexity” to uupd would mean something that can break in the future for whatever reason.

Actually it does little bit of effect, for example I just ujust update and output is:

:check_mark:︎ JSON API packages.x86_64_linux.jws.json Downloaded 15.2MB/ 15.2MB

It downloaded 15 MB file despite I have no brew program installed.

If I’m not mistaken, ujust update is a shortcut for /usr/bin/topgrade --config /usr/share/ublue-os/topgrade.toml.

If you don’t want it to launch the homebrew update command, you could copy that TOML document, and remove "brew_formula" (and "brew_cask") from the only array. And then you can run topgrade with that new config file.

Atleast Aurora we don’t use topgrade, we use uupd

Bazzite probably uses topgrade still.

You can of course disable the brew check in uupd too