Files
cheatsheet-tldr/tldr/windows/winget
2026-01-09 00:22:15 +00:00

42 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# winget
> Windows Package Manager.
> More information: <https://learn.microsoft.com/windows/package-manager/winget>.
- Install a package (use `--source` when package is available from multiple sources):
`winget {{[add|install]}} {{package}}`
- Remove a package (Note: `remove` can also be used instead of `uninstall`):
`winget {{[rm|uninstall]}} {{package}}`
- Display information about a package:
`winget show {{package}}`
- Search for a package:
`winget search {{package}}`
- Upgrade all packages to the latest versions:
`winget upgrade {{[-r|--all]}}`
- List all packages installed that can be managed with `winget`:
`winget {{[ls|list]}} {{[-s|--source]}} winget`
- Import packages from a file, or export installed packages to a file:
`winget {{import|export}} {{--import-file|--output}} {{path o ile}}`
- Validate manifests before submitting a PR to the winget-pkgs repository:
`winget validate {{path o\manifest}}`