Powershell Installation on Mac book and Ubuntu

 

The article contains details about installing Power-shell on various Operating Systems. Powershell is a shell console (similar in Linux os) used to execute commands. Am mainly using power shell to manage 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 the “Brew” package manager. Check brew installed in your OS with the help of the below command.

$ brew info

4 kegs, 2,043 files, 94.5MB

Now install Powershell by executing below command.

$ brew cask install powershell

Finally, execute the below command to confirm the 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 the 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 the below command to install Powershell.

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

Execute the “PowerShell” command on the 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.