Powershell Installation on Mac book and Ubuntu

The article contains the details about installing Powershell on various Operating System. Powershell is a shell console (similar in linux os) used to execute commands. Am mainly using power shell to mange Microsoft Azure resources. It’s an open source and cross platform package.

Powershell can also be used for automation and configuration management. Here we explain about installing to on MacOS Mojave ( Version 10.14.6) and  Ubuntu 18.04.3 LTS.


Installation step for MacOS.

Powershell can be installed in MacOS with the help of “Brew” package manager. Check brew installed in your OS with the help of below command.

$ brew info

4 kegs, 2,043 files, 94.5MB

Now install Powershell by executing below command.

$ brew cask install powershell

Finally, execute below command to confirm installation is successful.

$ pwsh
 PowerShell 6.2.3 Copyright (c) Microsoft Corporation. All rights reserved. https://aka.ms/pscore6-docs Type 'help' to get help. PS /home> 

We have completed the installation of Powershell 6.2.3.  To get more details of the installed version, execute below command.

PS /home> $PSVersionTable


Installation on Ubuntu:

“snap” command is required to install Powershell on Ubuntu. This package manager is available on Ubuntu 18.04.3 LTS

Execute below command to install Powershell.

techies@techiescorner:~$ sudo snap install powershell --classic

Execute “powershell” command on terminal to initiate it.


Installation on Mac book and Ubuntu 18 has been completed successfully.

Leave a Reply

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