this post was submitted on 19 Apr 2026
24 points (100.0% liked)

Linux

64798 readers
585 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] nobody_1677@lemmy.world 2 points 3 days ago* (last edited 3 days ago) (2 children)

Brew installs both applications and their dependencies. When brew is added to the PATH, it also puts all those dependencies on your PATH.

For the most part, this does not cause issues. The OS usually uses absolute paths for binaries and dependencies. But for some programs, they will rely on PATH and may not be compatible with what brew provides.

Ideally, I think brew should fix this by only adding what you explicitly install to your PATH. When you launch it, it should launch a wrapper script that updates PATH with the homebrew dependencies. Though that wouldn’t exactly work for those who install a shell like zsh since then that would inherit the brew libraries anyway.

Or instead of changing PATH at all, use a fancy linking mechanism like Nix.

Universal Blue does some path tinkering to fix this, not sure how though. KDE Linux also has their own workaround, where they instead prioritize system dependencies over brews so that it’s brew that would break instead of the OS.

Little more info from KDE:

[–] marlowe221@lemmy.world 2 points 3 days ago

So, it looks like Bluefin used to do some PATH gymnastics to keep things working pretty smoothly.

But now, they just make sure that brew is last in the PATH. This prioritizes the CLI commands baked into the image.

[–] marlowe221@lemmy.world 2 points 3 days ago

Thanks for the info, I really appreciate it!

So far, I will say that I haven’t run into any issues but it’s interesting to learn about some of the pitfalls/limitations too.

It’s all about trade offs, I guess!