Homebrew: non-admin user install
I want to have a non-admin user were I develop in. The user must run unix and gui developer software. MacPorts, https://www.macports.org/, is best installed with admin privileges. I am looking for an easy to install unix package manager that is kept upto date. Homebrew, http://mxcl.github.com/homebrew, as of this writing, seems to fulfill those requirements.
Requirements
-
An Intel CPU 1
-
OS X 10.5 or higher 2
-
Command Line Tools for Xcode [from the App Store]
Install Procedure
1 login into a non-privileged user 1 go to the root of the user account i.e. /Users/nonPrivUser 1 create a folder for the homebrew scripts and binaries; I will use their instruction, https://github.com/mxcl/homebrew/wiki/Installation, with my folder names:
-
mkdir hbrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C hbrew
The actual homebrew master command is now hbrew/bin/brew. Type the following command to see the help list of options:
-
hbrew/bin/brew -h
Example install of Python
Get a list of python versions:
-
hbrew/bin/brew search python
Install the default, which is the latest stable of 2.7 (as of this writing):
-
hbrew/bin/brew install python
To Uninstall
You can delete the hbrew folder since no system folders were modified in this version of the install. See Homebrew’s FAQ, https://github.com/mxcl/homebrew/wiki/FAQ, for details and other useful commands.
Software issues thus far
Software requiring /usr/local or /opt folder location install:
-
there may be switches which can change the location
-
more research is required
-
postgresql
-
brew-cask’s placement
— MarlonAGriffith - 12 Mar 2013