0% found this document useful (0 votes)
2 views1 page

Install PowerShell in Linux

This document provides a step-by-step guide to install PowerShell on Linux. It includes commands for updating system packages, installing prerequisites, downloading and registering Microsoft repository GPG keys, enabling universe repositories, and finally installing and launching PowerShell. The installation process is primarily executed through terminal commands in Ubuntu 20.04.

Uploaded by

viniciuslord9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Install PowerShell in Linux

This document provides a step-by-step guide to install PowerShell on Linux. It includes commands for updating system packages, installing prerequisites, downloading and registering Microsoft repository GPG keys, enabling universe repositories, and finally installing and launching PowerShell. The installation process is primarily executed through terminal commands in Ubuntu 20.04.

Uploaded by

viniciuslord9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Install PowerShell in Linux

Command: sudo snap install powershell --classic

Launch: pwsh

1. First update list of system packages using below command :

sudo apt-get update

2. Install pre-requisite packages using the below command :

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

3. Now download the Microsoft repository GPG keys :

wget -q [Link]

4. Then register the Microsoft repository GPG keys :

sudo dpkg -i [Link]

5. Then update the system source :

sudo apt-get update

6. Enabling the universe repositories :

sudo add-apt-repository universe

7. Now we can finally install PowerShell using the below command :

sudo apt-get install -y powershell

8. Now we can start PowerShell by simply typing the below command :

$ pwsh

You might also like