How To Change Default Install Location May 2026
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)
./configure --prefix=/mnt/bigdrive/usr/local make && sudo make install For , no global default change — use bind mounts: how to change default install location
setup.exe /DIR="D:\MyApps" /VERYSILENT /SUPPRESSMSGBOXES Use msiexec for MSI files: sudo mkdir -p /etc/dpkg/dpkg
sudo systemctl stop snapd sudo mv /var/lib/snapd /mnt/bigdrive/snapd sudo ln -s /mnt/bigdrive/snapd /var/lib/snapd sudo systemctl start snapd Set in ~/.bashrc or ~/.config/environment.d/ : how to change default install location
robocopy "C:\Program Files" "D:\Program Files" /E /COPYALL /DCOPY:T rmdir "C:\Program Files" /S /Q mklink /J "C:\Program Files" "D:\Program Files" Repeat for C:\Program Files (x86) if needed.
# Create user Applications folder if missing mkdir ~/Applications defaults write com.apple.installer TargetDirectory -string "/Volumes/Data/Applications"
Change installation location:
Recent Comments