description | ms.date | title |
---|---|---|
Learn about the Linux distributions supported by PowerShell. |
01/09/2023 |
Install PowerShell on Linux |
Install PowerShell on Linux
PowerShell can be installed on different Linux distributions. Most Linux platforms and distributions have a major release each year, and provide a package manager that's used to install PowerShell. This article lists the currently supported Linux distributions and package managers.
The rest of this article is a breakdown of each Linux distribution that PowerShell supports. All PowerShell releases remain supported until either the version of PowerShell reaches end-of-support or the Linux distribution reaches end-of-life.
For the best compatibility, choose a long-term release (LTS) version.
Alpine
[!INCLUDE Alpine support]
For more information, see Install PowerShell on Alpine.
Debian
Debian uses APT (Advanced Package Tool) as a package manager.
[!INCLUDE Debian support]
For more information, see Install PowerShell on Debian.
Red Hat Enterprise Linux (RHEL)
RHEL 7 uses yum and RHEL 8 uses the dnf package manager.
[!INCLUDE RHEL support]
For more information, see Install PowerShell on RHEL.
Ubuntu
Ubuntu uses APT (Advanced Package Tool) as a package manager.
[!INCLUDE Ubuntu support]
For more information, see Install PowerShell on Ubuntu.
Raspberry Pi OS
Raspberry Pi OS (formerly Raspbian) is a free operating system based on Debian.
[!IMPORTANT] .NET isn't supported on ARMv6 architecture devices, including Raspberry Pi Zero and Raspberry Pi devices prior to Raspberry Pi 2.
For more information, see Install PowerShell on Raspberry Pi OS.
Community supported distributions
There are many distributions of Linux that aren't officially supported by Microsoft. In some cases, PowerShell may be supported by the community for these releases. For more information, see Community support for PowerShell on Linux.
CentOS and Fedora distributions are no longer supported. The versions of these operating systems that were supported have reached their end-of-life dates. We aren't supporting any newer versions.
Alternate installation methods
There are three other ways to install PowerShell on Linux, including Linux distributions that aren't
officially supported. You can try to install PowerShell using the PowerShell Snap Package. You can
also try deploying PowerShell binaries directly using the Linux tar.gz
. For more information, see
Alternate ways to install PowerShell on Linux.