Replies: 2 comments 4 replies
-
|
A few things to address. There are several thousand Homebrew packages (bottles) for Linux. You can confirm by running The prefix isn't chosen to avoid root at install time. It's to avoid root for every subsequent operation. The install directory is chowned to a user (the On extending The FAQ section you quoted already covers installing to a custom prefix if the default doesn't suit you, with the tradeoff that you'll build from source. That tradeoff exists precisely because of the bottle relocation issue above. |
Beta Was this translation helpful? Give feedback.
-
|
I think the main reason is that Homebrew intentionally avoids requiring ongoing root access on Linux. Using
Both have their own security and maintenance tradeoffs.
That said, I do understand the concern about backup tools and filesystem conventions. On Linux, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Additional Info
Output of
brew configOutput of
brew doctorDescription of issue
The issue is that you're breaking linux built-in security features by installing to a new "user" directory under
/home. This make no sense at all, as it requires you to place read g/w readability to that directory.This is abnormal AF, and is not even done on Macs.
Why is it not placed under
/optlike we have always done for the last 30 years, when adding packages?EDIT
I found this in the FAQ:
However, the question still stands.
You still need root to write a new user directory under
/home/something/So you might as well, use root to create homebrew under
/opt/homebrewand give that all rwx permissions.It's really weird to have apps creating user directories, in addition, automated backups looks for user files, and don't wanna back up entire binary trees. In addition you're then putting it all inside a dotted sub-directory (
.homebrew) for absolutely no reason at all. Anything ".dotted" is usally reserverd for configuration stuff, not for placing entire file/disk installaion trees. It was Microsft madmen that started doing this... Ruining any sensible file structure in their OS, then the madness propagated into Apple, and now also into Linux world.Since you're already using
/opt/homebrewfor Apple Silicon, so why not extend it to the Linux distros?This location issue is also the main reason why there are no compatible homebrew packages for linux.
Beta Was this translation helpful? Give feedback.
All reactions