Defining Powershell
PowerShell is a configuration management framework and also a task automation from Microsoft which consists of a command-line shell and associated scripting language built on the .NET Framework and .NET Core. On 18 August 2016 PowerShell was made open-source and a cross-platform. Powershell supports automation of batch processing and creates system management tools. It includes 130 and more standard command line tools for functions and enables the administrators to perform tasks on local as well as remote Windows systems through access to Component Object Model (COM) and Windows Management Instrumentation (WMI).
Powershell supports both Ubuntu and Mac users and it is available as an open source. PowerShell on Windows, Linux and MacOS now provides its users with a single management stack to manage all their workloads irrespective of the environment. Now we will be discussing about how to install PowerShell on Ubuntu 16.04 and Mac OS Sierra 10.12.4.
Install PowerShell in Ubuntu 16.04
- Update packages via terminal
- Powershell installation requires two more Debian package dependencies.
libunwind8: library to determine the call-chain of a program – runtime
libicu55: International Components for Unicode - To install dependency run this command
- Two ways to install PowerShell in Ubuntu 16.04
i) Download the appropriate package from Release page on Github[https://github.com/PowerShell/PowerShell/releases/] and download it.
ii) Download PowerShell package via terminal using this command.Wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.debchmod +x powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb- After downloading package, install PowerShell using
sudo dpkg -i powershell_6.0.0-alpha.18-1ubuntu1.16.04.1_amd64.deb- Powershell installation is completed and ready to use
- To open PowerShell via terminal, just type a single word PowerShell
- Now the powershell window is opened and ready to use
- To get available module list from PowerShell,
Get-Module -ListAvailable- The available module is listed
Install PowerShell in Mac OS Sierra 10.12.4
- Download PKG package
- If working with default settings, we receive an installation error
- To resolve it, open System Preferences->Security & Privacy-> click Open anyway
- Now able to open Powershell installation wizard and then start installation
- Click Continue to process the installation
- An alert notification is visible to see
- Enter login credential and Click Install Software button and click Install to process
- Click Install to perform the Standard installation
- Powershell installation completed successfully
- Using terminal start powershell
Conclusion
Powershell package is free and it is easy to download with minimal system Requirements. Powershell is a free utility and is easy to manage across all platforms.