Install Microsoft Powershell in Ubuntu

Author - Navneet Kashyap

How to install Powershell in Ubuntu:

PowerShell is Microsoft proprietary and it is a task automation and configuration management framework from Microsoft consisting of a command-line (shell) and associated scripting language but Microsoft provides ways to use this in linux environment also.

Installation via Package Repository – Ubuntu 18.04
Microsoft Powershell package repositories for easy installation (and updates).

Linux shell>

		
# Download the Microsoft repository at any location
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb

# Register the Microsoft repository using below command
sudo dpkg -i packages-microsoft-prod.deb

# Now you have to update the list of repositories.
sudo apt-get update

# Install Microsoft Powershell using following command
sudo apt-get install powershell

# Now start using the Microsoft Powershell using below command
pwsh

Installation via Package Repository – Ubuntu 14.04
PowerShell package repositories for easy installation (and updates).

Linux shell>

# Download the Microsoft repository at any location
wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb

# Register the Microsoft repository using below command
sudo dpkg -i packages-microsoft-prod.deb

# Now you have to update the list of repositories.
sudo apt-get update

# Install Microsoft Powershell using following command
sudo apt-get install powershell

# Now start using the Microsoft PowerShell using below command
pwsh

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *