Child pages
  • How To: Install and Run Software without Elevated Privileges (EP)
Skip to end of metadata
Go to start of metadata

This is a living document.  Comments and contributions are most welcome!


It's not necessary to have Elevated Privileges (EP) to install and run many popular software libraries.  Homebrew can often install a program for you without any manual configuration.  When required, a manual installation consists of two keys steps: downloading the software package (e.g., a JAR or zip file) and adding the downloaded software to the PATH environmental variable, so your computer knows where to find it.


Homebrew offers several alternative methods of installation.  The most relevant are the instructions labeled "Untar Anywhere" found on the official documentation page.  Here's is a complete script for installing and running homebrew inside your user's home directory where you don't need EP. 

# navigate to your home directory
cd ~/

# create a homebrew folder in your home directory
mkdir homebrew

# download homebrew software into your new folder
curl -L | tar xz --strip 1 -C homebrew

eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"

# add homebrew to zsh shell
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.zshrc

# add homebrew to bash shell's profile (if applicable)
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.bash_profile

# add homebrew to bash shell's rc file (if applicable)
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.bashrc

# if homebrew doesn't work immediately, don't worry, you just have to source the new path
source ~/.zshrc # if you are using zsh
source ~/.bash_profile # if you are using bash

# you can test with the following
brew --version


NodeJS and NPM can be installed with Node Version Manager.  Complete documentation can be found at, but the following is the minimum required to install and use NodeJS.

# install Node Version Manager (NVM)
curl -o- | bash

# install and use the latest stable version of NodeJS
nvm install --lts

# check install
nvm --version

# if the install didn't work, you may have to add the following to ~/.zshrc or ~/.bash_profile
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/" # This loads nvm


With homebrew installed, you can install Java with just a couple commands.

# use homebrew to install Java
brew install java

# add Java to your PATH environmental variable, so your terminal knows where to find Java

echo 'export PATH="'$(brew --prefix)'/opt/openjdk/bin:$PATH"' >> ~/.zshrc # if you are using zsh
echo 'export PATH="'$(brew --prefix)'/opt/openjdk/bin:$PATH"' >> ~/.bashrc # if you are using bashrc
echo 'export PATH="'$(brew --prefix)'/opt/openjdk/bin:$PATH"' >> ~/.bash_profile # if you are using bash_profile

# you can test that it works with the following
java --version


With homebrew installed, you can install and run PostgreSQL without EP.  You can read the documentation on that approach here:  The code for that is below

# using homebrew, install postgresql 
brew install postgresql

# run postgresql
brew services start postgresql


ElastiqMQ provides official instructions for a stand-alone installation, which you can find here:  Below is the key code for that:

# download/install ElasticMQ Java Archive (JAR) File
curl --output elasticmq-server-1.3.9.jar

# run the ElasticMQ JAR we downloaded in the previous step
java -jar elasticmq-server-1.3.9.jar


With Java installed, you can install Leiningen, a tool for working with Clojure.

# as of Jan 19, 2023, the following line is required to fix the following error: "Package 'pthread-stubs', required by 'xcb', not found"
brew reinstall --build-from-source libxcb

brew install leiningen


brew install maven