# 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 ` ```powershell PS> winget search etcher Nom ID Version ---------------------------------------------- balenaEtcher Balena.Etcher 1.5.121 UCF Ahlyab.UdemyCouponFetcher 1 ``` ##### Information sur un paquet: `winget show ` ```powershell 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 ` ```powershell PS> winget install balenaEtcher Trouvé balenaEtcher [Balena.Etcher] La licence d’utilisation de cette application vous est octroyée par son propriétaire. Microsoft n’est pas responsable des paquets tiers et n’accorde 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 l’installation a été vérifié avec succès Démarrage du package d’installation... Merci de patienter. Installé correctement ``` ##### Mettre-à-jour un paquet: `winget upgrade ` `winget upgrade --all` `winget list ` ##### Désinstaller un paquet: `winget uninstall `