logoalt Hacker News

roger_today at 10:55 AM4 repliesview on HN

Does installation still require root and a dedicated user account on Linux?

That really put me off.


Replies

mikemcquaidtoday at 11:58 AM

See the release notes: we now have experimental support for using any prefix shorter than the Linux default. We are aiming to eventually fully support (Tier 1) any prefix under 64 bytes long.

show 1 reply
wscotttoday at 11:04 AM

The dedicated user isn't really required; it just expects that /home/linuxbrew/.linuxbrew exists. That can just be a symlink to your home directory. But yes, creating that symlink requires root on most systems. Brew itself doesn't require root or that pathname; you can put packages anywhere, but then many will have to be built from scratch since the pre-built packages don't work. And you need bubblewrap installed (which requires root) to use the sandbox, but again that is optional.

All that said, when you are running without a sandbox installing to a nonstandard location, not everything works consistently. I run this mode all the time. But it has been getting better.

show 1 reply
hk1337today at 12:17 PM

I always download the install script and change the directory to my user home directory, ~/.brew

dghlsakjgtoday at 11:10 AM

The dedicated user account is optional.

It uses root once to chown its prefix directory /home/linuxbrew/.linuxbrew