2020-10-05 16:56:02 +02:00
|
|
|
# winget
|
|
|
|
|
2023-07-16 19:23:40 +02:00
|
|
|
> Windows Package Manager.
|
2022-10-04 20:36:23 +05:30
|
|
|
> More information: <https://learn.microsoft.com/windows/package-manager/winget>.
|
2020-10-05 16:56:02 +02:00
|
|
|
|
|
|
|
- Install a package:
|
|
|
|
|
2025-07-04 09:55:09 +03:00
|
|
|
`winget {{[add|install]}} {{package}}`
|
2020-10-05 16:56:02 +02:00
|
|
|
|
2023-06-08 22:46:36 +05:30
|
|
|
- Remove a package (Note: `remove` can also be used instead of `uninstall`):
|
|
|
|
|
2025-07-04 09:55:09 +03:00
|
|
|
`winget {{[rm|uninstall]}} {{package}}`
|
2023-06-08 22:46:36 +05:30
|
|
|
|
2020-10-05 16:56:02 +02:00
|
|
|
- Display information about a package:
|
|
|
|
|
|
|
|
`winget show {{package}}`
|
|
|
|
|
|
|
|
- Search for a package:
|
|
|
|
|
|
|
|
`winget search {{package}}`
|
2022-10-16 05:41:04 +01:00
|
|
|
|
2023-06-08 22:46:36 +05:30
|
|
|
- Upgrade all packages to the latest versions:
|
2022-10-16 05:41:04 +01:00
|
|
|
|
2025-07-04 09:55:09 +03:00
|
|
|
`winget upgrade {{[-r|--all]}}`
|
2022-10-16 05:41:04 +01:00
|
|
|
|
2023-06-08 22:46:36 +05:30
|
|
|
- List all packages installed that can be managed with `winget`:
|
2022-10-16 05:41:04 +01:00
|
|
|
|
2025-07-04 09:55:09 +03:00
|
|
|
`winget {{[ls|list]}} {{[-s|--source]}} winget`
|
2023-06-08 22:46:36 +05:30
|
|
|
|
|
|
|
- Import packages from a file, or export installed packages to a file:
|
|
|
|
|
|
|
|
`winget {{import|export}} {{--import-file|--output}} {{path/to/file}}`
|
|
|
|
|
|
|
|
- Validate manifests before submitting a PR to the winget-pkgs repository:
|
|
|
|
|
|
|
|
`winget validate {{path/to/manifest}}`
|