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

Feature Update: Enable user defined HOMEBREW_PREFIX in Linux #921

Closed
wants to merge 1 commit into from

Conversation

jobs-git
Copy link

This still defaults to HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew" when HOMEBREW_PREFIX is not set

@MikeMcQuaid
Copy link
Member

Sorry, we don't want this to be user-customisable. You may want to use this closed PR to discuss what you're intending here and why?

@jobs-git
Copy link
Author

Various actually, among which is local install organization, install management, common use apps in shared user, ease of data migration and Docker data file app sharing.

You see, almost all apps can be installed in a user defined path, and this appears to be an odd one out. I will open this again as your reasoning seems to be not sound enough? :)

@SMillerDev
Copy link
Member

Homebrew is not an app though, it's a package manager. I doubt apt or yum can be installed in a user defined location for example.

@jobs-git
Copy link
Author

To add:

  1. /home/linuxbrew is a wrong install directory, because /home is usually filled with user-name directories. With this, it appears that linuxbrew wants to be a User.
  2. Is this what you intend? Because if this is where its installed, you were trying to make it available globally, which again wrong because of user permission from the original install.
  3. Anyway, if its intended for global, you have the wrong directory too, at least you should have set it to /opt/ like all other known developer. Example google places their files in /opt/. NVidia also does that, and other else.

@SMillerDev
Copy link
Member

/home/linuxbrew is a wrong install directory, because /home is usually filled with user-name directories. With this, it appears that linuxbrew wants to be a User.

That is exactly the goal. Linuxbrew was started in HPC environments where users only have access to the /home based directories. This way, the admin of the HPC cluster can create a linuxbrew user, and let people use that user instead of allowing everyone to use yum or apt. The fact that this is not according to the usual linux filesystem conventions is intentional, the current way makes it completely independent from the rest of the OS as a feature, not a bug.

@MikeMcQuaid
Copy link
Member

@jobs-git All the binaries packages for Linux are built for /home/linuxbrew/.linuxbrew. Many will not work with a different prefix. As a result, we don't support and have no plans to move to a new prefix for users. If you change HOMEBREW_PREFIX in this way: things will not work as expected.

You can still install Homebrew on Linux to a different path; it's just not supported and a fairly crappy user experience.

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

Successfully merging this pull request may close these issues.

3 participants