Microsoft released the PowerShell Core that support MacOS/Linux OS
Microsoft’s PowerShell team officially announced the release of PowerShell Core 6.0, a very strange thing is that this is clearly the first version of Core, but it uses a 6.0 suffix. “This is the biggest and most important change we make to PowerShell,” said Jeffrey Snover, a Microsoft technology researcher and founder of PowerShell, on Twitter.
This is the biggest and most important change we've every made to PowerShell!
PowerShell Core 6.0: Generally Available (GA) and Supported! https://t.co/noYxXFZGi0— Jeffrey Snover (@jsnover) January 10, 2018
PowerShell Core builds open source projects based on .NET Core and runs on multiple platforms such as Windows, MacOS, Linux, Ubuntu, Debian, OpenSUSE.
In the meantime, a clean install will get you the latest version:
sudo apt remove powershell && sudo apt-get install powershell
sudo yum remove powershell && sudo yum install powershell
This also means that the existing PowerShell is divided into two versions: Windows PowerShell based on the .NET Framework and PowerShell Core based on the .NET Core. As far as the current trends of Microsoft are concerned, the two versions will work in parallel.
PowerShell (including Windows PowerShell and PowerShell Core) is a task automation and configuration management framework developed by Microsoft Corporation. It consists of a shell-related scripting language built by the .NET Framework and .NET Core, originally only for Windows components and later on August 18, 2016, open source and cross-platform support, the main users for IT practitioners, programmers and advanced database users.
According to Microsoft’s blog post, PowerShell Core will be constantly updated, like Windows and Office 365.
Reference: Microsoft