To permanently change the default download behavior for the download command, you must edit the winget settings file: Run winget settings to open your settings.json file. Add or modify the downloadBehavior section:
WinGet generally cleans up its temporary files in %TEMP%\WinGet after a successful installation. However, if an upgrade fails or you have used the winget download command frequently, you may need to clear space manually. winget upgrade download location
To see the current paths used by your specific WinGet installation, run: powershell winget --info Use code with caution. To permanently change the default download behavior for
This command will list the directories for "Installer Downloads" and other system paths. Change the Download Directory (Command Level) To see the current paths used by your
"downloadBehavior": { "defaultDownloadDirectory": "C:/Path/To/Your/Downloads" } Use code with caution. Save the file. Note that this must be an . 3. Managing Space: Deleting Downloaded Files