Microsoft has published its command-line shell and scripting language PowerShell for Linux OS as a Snap package, creating it effortless for Linux users to install Microsoft PowerShell on their computer.
This is not a jocking! Yes you hear me right
Microsoft has made PowerShell Core available to the Ubuntu Snap Store as a Snap application.
Supported platforms
Microsoft community has also provided packages for some platforms, but they are not officially supported. which packages are identified as Community
in blow the table.
Windows 7, 8.1, and 10 | Supported | Supported |
Windows Server 2008 R2, 2012 R2, 2016 | Supported | Supported |
Windows Server Semi-Annual Channel | Supported | Supported |
Ubuntu 14.04 and, 16.04 | Supported | Supported |
Ubuntu 17.10, and 18.04 | Supported | |
Debian 8.7+, and 9 | Supported | Supported |
CentOS 7 | Supported | Supported |
Red Hat Enterprise Linux 7 | Supported | Supported |
OpenSUSE 42.2 | Supported | Supported |
Fedora 27 | Supported | Supported |
Fedora 28 | Supported | |
macOS 10.12+ | Supported | Supported |
Arch | Community | Community |
Raspbian | Experimental | Community |
Kali | Community | Community |
AppImage (works on multiple Linux platforms) | Community | Community |
PowerShell Core is to be the universal language for controlling your assets in the hybrid cloud. worked to many operating systems, architectures, and flavors of Linux, macOS, and Windows as possible.
Benefits of Snap Packages
Snap packages have a number of benefits over traditional Linux software packages (e.g. DEB or RPM):
- Snap packages carry all of their own dependencies, so you don’t need to worry about the specific versions of shared libraries installed on your machine
- Snap packages can be installed without giving the publisher root access to the host
- Snap packages are “safe to run” as they don’t interact with other applications or system files without your permission
- Updates to Snaps happen automatically and include the delta of changes between updates
How to Install PowerShell Core on Linux
first, need to install snapd and then run the following command.here install process
Important :
You must update within six months after each new minor version release to continue receiving support.