Windows is finally getting a Package-Manager like YUM or APT-GET along with a repository. The Package-Manager is called WINGET (apparently after APT-GET; someone at MS must be a Ubuntu/Debian fan).
Install Winget Windows 11 | Install Winget Windows 10
It is awkward getting WINGET which is kinda ironic. Reportedly, it will be in WINDOWS-UPDATES automatically at some point.
For Windows 11 results vary. Winget is usually automatically in Windows 11; sometimes not. Probably factory config.
MSIX Install
wget https://aka.ms/getwinget -outfile winget.msixbundle
add-appxpackage winget.msixbundle
rm winget.msibundle
Script Direct Install
If that does not work or you want to install via SYSTEM user or you are installing on a Windows Server:
cd c:\windows\systemtemp
wget https://raw.githubusercontent.com/asheroto/winget-install/refs/heads/master/winget-install.ps1 -outfile winget-install.ps1
.\winget-install.ps1
#.\winget-install.ps1 -force -Debug
Script Powershell Module Install
Use the winget-install script which will get all the dependencies:
- find-script *winget*
- install-script winget-install
- winget-install
PowerShell Module Install
The following requires Powershell 7 which installs in-parallel or side-by-side (it does not replace Powershell 5). There is a winget module to install winget on Windows 10/11:
- Install-Module Microsoft.WinGet.Client
- import-module Microsoft.Winget.Client
- (Get-Module microsoft.winget.client).ExportedCommands
- get-command -module Microsoft.Winget.Client
Manual
If you want to do it manually/visually:
- go to the GITHUB site here: https://github.com/microsoft/winget-cli/releases
- -click on the newest release (not pre-release).
- -download the .msixbundle here:
- -double-click to install through the MS Store.
Use Winget
To use WINGET, simple type:
winget
winget --info
winget list
winget search replace-with-lazy-search-keywords-here
(ie winget search shell)
(means "shell" will show "Shell Notebook" "open shell" but also "TortoiseGit" because it is tagged with "shell")
winget install -h foo-app
winget upgrade -h foo-app
Winget Settings
winget settings
This will open the settings file. It is a JSON file for customizations. Mine looks like this.
Winget From Out of Box
So if the Windows 10/11 system were from fresh install, it would look something like this:
=========================================
cd c:\windows\systemtemp
#Install-Module -Name Microsoft.WinGet.Client
#import-module -Name Microsoft.Winget.Client
wget https://raw.githubusercontent.com/asheroto/winget-install/refs/heads/master/winget-install.ps1 -outfile winget-install.ps1
.\winget-install.ps1
#.\winget-install.ps1 -force -Debug
#.\winget-install.ps1 -force -Debug -AlternateInstallMethod
winget
winget search chrome
winget install google.chrome -h --accept-package-agreements --accept-source-agreements
winget search firefox
winget install mozilla.firefox -h --accept-package-agreements --accept-source-agreements
winget search notepad
winget install Notepad++.Notepad++ --scope machine -h --accept-package-agreements --accept-source-agreements
winget search putty
winget install putty.putty --scope machine -h --accept-package-agreements --accept-source-agreements
winget search winscp
winget install WinSCP.WinSCP --scope machine -h --accept-package-agreements --accept-source-agreements
winget search office |findstr /i micro
winget install microsoft.office -h --accept-package-agreements --accept-source-agreements
winget search mremote
winget install mremoteng.mremoteng --scope machine -h --accept-package-agreements --accept-source-agreements
winget search totalc
winget install Ghisler.TotalCommander --scope machine -h --accept-package-agreements --accept-source-agreements
winget search adobe
winget install Adobe.Acrobat.Reader.64-bit --scope machine -h --accept-package-agreements --accept-source-agreements
winget search 7zip
winget install 7zip.7zip --scope machine -h --accept-package-agreements --accept-source-agreements
winget search openvpn
winget install openvpntechnologies.openvpn --scope machine -h --accept-package-agreements --accept-source-agreements
winget search keepass
winget install DominikReichl.KeePass --scope machine -h --accept-package-agreements --accept-source-agreements
winget search vlc
winget install videolan.vlc --scope machine -h --accept-package-agreements --accept-source-agreements
winget search discord
winget install discord.discord -h --accept-package-agreements --accept-source-agreements
winget search shell
winget install Open-Shell.Open-Shell-Menu -h --accept-package-agreements --accept-source-agreements
winget search advanced
winget install Famatech.AdvancedIPScanner -h --accept-package-agreements --accept-source-agreements
cat C:\users\usernamehere\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
==================================================================
Update Winget Packages
And if you wanted to update all the software:
winget upgrade --all --include-unknown
or
winget upgrade -r -u
winget upgrade -r -u -h --accept-source-agreements --accept-package-agreements
==================================================================
AutoUpdate Winget Packages
And if you wanted to autoupdate all the software:
winget install Romanitho.Winget-AutoUpdate
NOTES:
winget install location is: c:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.26.510.0_x64__8wekyb3d8bbwe\winget.exe
https://github.com/asheroto/winget-install
https://github.com/Romanitho/Winget-AutoUpdate
https://docs.microsoft.com/en-us/powershell/module/appx/add-appxpackage?view=windowsserver2019-ps&viewFallbackFrom=win10-ps