diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 7c59fd881e8aa..1b4269b6210cb 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -65,7 +65,7 @@ else CACHE_HOME="${HOMEBREW_XDG_CACHE_HOME:-${HOME}/.cache}" HOMEBREW_DEFAULT_CACHE="${CACHE_HOME}/Homebrew" HOMEBREW_DEFAULT_LOGS="${CACHE_HOME}/Homebrew/Logs" - HOMEBREW_DEFAULT_TEMP="/tmp" + HOMEBREW_DEFAULT_TEMP="/var/tmp" fi realpath() { diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb index 44a23c4f37c48..8117df94a895b 100644 --- a/Library/Homebrew/env_config.rb +++ b/Library/Homebrew/env_config.rb @@ -457,7 +457,7 @@ module EnvConfig "different volumes, as macOS has trouble moving symlinks across volumes when the target " \ "does not yet exist. This issue typically occurs when using FileVault or custom SSD " \ "configurations.", - default_text: "macOS: `/private/tmp`, Linux: `/tmp`.", + default_text: "macOS: `/private/tmp`, Linux: `/var/tmp`.", default: HOMEBREW_DEFAULT_TEMP, }, HOMEBREW_UPDATE_TO_TAG: {