Skip to main content
HTREASURE LTD

Software tutorials

How to Install and Update Software with Winget on Windows

Winget, the Windows Package Manager, installs and updates apps from the command line. Learn the essential winget commands to keep your PC up to date.

Published

Winget is the Windows Package Manager, Microsoft's free, open-source command-line tool for installing and updating software. It is built into current versions of Windows 11 and modern Windows 10 through the App Installer app from the Microsoft Store.

Why use winget?

  • Install apps without visiting websites, so less risk of [fake downloads](https://htreasure.com/blog/spot-fake-software-downloads).
  • Update many apps at once with one command.
  • Set up a new PC quickly with the same apps.
  • Script installs for several machines in a small business.

Check winget is installed

Open Terminal, PowerShell or Command Prompt and run:

winget --version

If it is not found, install or update App Installer from the Microsoft Store.

Search for an app

winget search firefox

Results show the app name, its Id (for example Mozilla.Firefox) and the source. Use the Id for exact installs.

Install an app

winget install --id Mozilla.Firefox -e

The -e (exact) option makes sure winget installs the precise package you named. Some installers will show a Windows permission prompt.

See which apps have updates

winget upgrade

This lists installed apps that winget can update.

Update everything

winget upgrade --all

Add --include-unknown to also try apps whose installed version winget cannot detect. Close the apps you are updating first.

Uninstall an app

winget uninstall --id Mozilla.Firefox

Move your apps to a new PC

Export a list of installed apps:

winget export -o apps.json

Then on the new PC:

winget import -i apps.json

Things to know

  • Winget installs the publisher's own installer. Packages in the community repository are checked, but always confirm the publisher is who you expect.
  • Some apps are not available through winget, or update themselves instead.
  • Read each app's licence terms. Winget does not change them.

Frequently asked questions

Is winget safe?

Winget is developed by Microsoft and published as open source. Packages are submitted by the community and validated before inclusion, but checking the publisher is still sensible.

Need help?

Our [technical support](https://htreasure.com/services/technical-support) team can help automate software installation for your business.