DEV Community

Joseph Deblasio
Joseph Deblasio

Posted on

1

PowerShell install Ubuntu 20.04

Update the list of packages

sudo apt-get update

Install pre-requisite packages.

sudo apt-get install -y wget apt-transport-https software-properties-common

Download the Microsoft repository GPG keys

wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"

Register the Microsoft repository GPG keys

sudo dpkg -i packages-microsoft-prod.deb

Update the list of packages after we added packages.microsoft.com

sudo apt-get update

Install PowerShell

sudo apt-get install -y powershell

Start PowerShell

pwsh

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay