Skip to content

Instantly share code, notes, and snippets.

@mcx808
Created October 5, 2022 09:18
Show Gist options
  • Save mcx808/f7c72980009064d629bb30ade5f81204 to your computer and use it in GitHub Desktop.
Save mcx808/f7c72980009064d629bb30ade5f81204 to your computer and use it in GitHub Desktop.
Install Powershell on Debian 11
# Install system components
sudo apt update && sudo apt install -y curl gnupg apt-transport-https
# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Register the Microsoft Product feed
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main" > /etc/apt/sources.list.d/microsoft.list'
# Install PowerShell
sudo apt update && sudo apt install -y powershell
# Start PowerShell
pwsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment