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 export saves your app list for the next PC

Tools
~/tips/tip-windows-winget-export-import

winget export -o apps.json

Writes your installed Windows apps to a JSON file and reinstalls them elsewhere.

Setting up a new Windows PC means installing the same twenty apps again. If you use winget, you can skip most of that clicking. It can write a list of your installed apps to a file and read it back on the other machine.

winget export -o apps.json

That makes a JSON file with every installed app winget can match to a source. Add --include-versions if you want the exact versions; without it, import installs the latest. On the new PC:

winget import -i apps.json --accept-package-agreements --ignore-unavailable

--accept-package-agreements accepts the licence prompts in advance, so you don’t have to babysit it. --ignore-unavailable keeps going when an app from the list isn’t available.

Microsoft’s docs suggest editing the JSON before you import and removing what you don’t want. I’d do that: the export can pick up runtimes and helper packages you never installed on purpose, and a new PC is a good moment to drop old stuff.

Caveat: anything winget can’t match to a source gives a warning during export and simply isn’t in the file. Apps you installed by hand from a vendor’s website may be missing, so keep a short list of those yourself. And your settings and data don’t come along; this is the app list only.

Further reading: Microsoft Learn: winget export, Microsoft Learn: winget import

More Tools tips shuf -n 3 films.txt xmllint --format feed.xml pdftotext -layout invoice.pdf invoice.txt qrencode -t ANSIUTF8 'https://example.com/a/long/path?id=12345' where python All Tools tips (14) All topics

Link