brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: winget pin add stops Windows from upgrading one app along with the rest

Windows
~/tips/tip-windows-winget-pin-add

winget pin add --id Microsoft.PowerToys

Keeps a single app out of winget upgrade --all, or holds it at a version range you pick.

winget upgrade --all is great, until it updates the one app you wanted to keep on an older version. Pins solve that.

winget pin add --id Microsoft.PowerToys

A plain pin keeps the app out of winget upgrade --all. You can still upgrade it on purpose with winget upgrade and its ID. There are two stricter kinds:

winget pin add --id Microsoft.PowerToys --version 0.70.*
winget pin add --id Microsoft.PowerToys --blocking

With --version you get a gating pin: upgrades within the range are fine, and anything outside it is held back. The wildcard only works as the last part of the version. --blocking blocks all upgrades of that app until you remove the pin.

To see and remove pins:

winget pin list
winget pin remove --id Microsoft.PowerToys

For a one-off run that ignores plain pins, winget upgrade --all --include-pinned includes them.

Caveats. A pin only stops winget. If the app updates itself, or you install a new version by hand, the pin does nothing about it. The docs are not fully consistent about whether --force can override a blocking pin, so I would not count on either answer without trying it.

Further reading: winget pinning on Microsoft Learn

More Windows tips Win+Ctrl+C Win+Shift+Left arrow Win+Ctrl+Left arrow Alt+PrtScn Left Alt + Left Shift + Print Screen All Windows tips (33) All topics

Link