Skip to main content

How To Change Default Install Location __hot__ Site

# Create user Applications folder if missing mkdir ~/Applications defaults write com.apple.installer TargetDirectory -string "/Volumes/Data/Applications"

export PATH="$HOME/bin:$PATH" export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH" export PKG_CONFIG_PATH="$HOME/lib/pkgconfig" export CMAKE_INSTALL_PREFIX="$HOME/.local" Build tools respect DESTDIR : how to change default install location

sudo mkdir -p /etc/dpkg/dpkg.cfg.d/ echo "path-include=/mnt/bigdrive/usr/*" | sudo tee /etc/dpkg/dpkg.cfg.d/path-redirect (Not recommended – breaks security updates) # Create user Applications folder if missing mkdir

sudo dnf install --installroot=/mnt/bigdrive/fakeroot --releasever=38 package-name APT (advanced): Use dpkg override directory: how to change default install location

# Install Homebrew elsewhere export HOMEBREW_PREFIX="/opt/homebrew" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Or migrate existing: