Aller au contenu

winget

https://github.com/microsoft/winget-cli

https://docs.microsoft.com/en-us/windows/package-manager/?WT.mc_id=thomasmaurer-blog-thmaure

Installation:

Nécessite un compte Windows Insider.

Sur le Microsoft Store, installer App Installer (Programme d'installation d'application)

La commande winget est dispo dans l'Invite de commande ou dans Powershell.

Utilisation:

Rechercher un paquet:

winget shearch <paquet>

PS> winget search etcher
Nom          ID                        Version
----------------------------------------------
balenaEtcher Balena.Etcher             1.5.121
UCF          Ahlyab.UdemyCouponFetcher 1
Information sur un paquet:

winget show <paquet>

PS> winget show etcher
Trouvé balenaEtcher [Balena.Etcher]
Version: 1.5.121
Publisher: Balena Inc.
Author: Balena Inc.
Moniker: etcher
Description: Etcher is a powerful OS image flasher built with web technologies to ensure flashing an SDCard or USB drive is a pleasant and safe experience. It protects you from accidentally writing to your hard-drives, ensures every byte of data was written correctly and much more.
Homepage: https://www.balena.io/etcher
License: Apache License 2.0
License Url: https://raw.githubusercontent.com/balena-io/etcher/v1.5.121/LICENSE
Installer un paquet:

winget install <paquet>

PS> winget install balenaEtcher
Trouvé balenaEtcher [Balena.Etcher]
La licence dutilisation de cette application vous est octroyée par son propriétaire.
Microsoft nest pas responsable des paquets tiers et naccorde pas de licences à ceux-ci.
Downloading https://github.com/balena-io/etcher/releases/download/v1.5.121/balenaEtcher-Setup-1.5.121.exe
  ██████████████████████████████   140 MB /  140 MB
Le code de hachage de linstallation a été vérifié avec succès
Démarrage du package dinstallation... Merci de patienter.
Installé correctement
Mettre-à-jour un paquet:

winget upgrade <paquet>

winget upgrade --all

winget list <paquet>

Désinstaller un paquet:

winget uninstall <paquet>


Dernière mise à jour: August 31, 2021