Created
October 5, 2022 09:18
-
-
Save mcx808/f7c72980009064d629bb30ade5f81204 to your computer and use it in GitHub Desktop.
Install Powershell on Debian 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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