Install PowerShell on Ubuntu 18.04

Recently i had to install Powershell on my Ubuntu servers in order to run some ansible playbook on vCenter.
I am using on Ubuntu 18.04, which by default Powershell modules not part of server and we have to use the following command in order to be able use powershell commands:

sudo update update && sudo apt -y install wget
wget -q
sudo dpkg -i packages-microsoft-prod.deb
sudo apt update
sudo apt -y install powershell

Then run:


And you can see that Powershell is installed:

About Meir Peleg 338 Articles
My name is Meir Peleg, (Born 30/04/1991) live in ISRAEL. Live and breath IT world. Microsoft MVP Windows IT & VMware vExpert.