Skip to content

Instantly share code, notes, and snippets.

@Dragod
Created September 29, 2021 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dragod/117f2e7e57ff7418696cfbd917c0177a to your computer and use it in GitHub Desktop.
Save Dragod/117f2e7e57ff7418696cfbd917c0177a to your computer and use it in GitHub Desktop.
Make winget work on bash

Enable windows subsystem in powershell

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Ebable virtual machine feature in powershell

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Download linix kernel update

https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Set WSL 2 as your default version

wsl --set-default-version 2

Install your linux distro of choice

Add this to the end of .bashrc

function winget { cmd.exe /c "winget $1 $2 $3";}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment