Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
PowerShell can be installed on several 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. PowerShell can be installed on some distributions of Linux that aren't supported by Microsoft. In those cases, you may find support from the community for PowerShell on those platforms.
For more information, see the PowerShell Support Lifecycle documentation.
This article lists the supported Linux distributions and package managers. All PowerShell releases remain supported until either the version of PowerShell or the version of the Linux distribution reaches end-of-support.
For the best compatibility, choose a long-term release (LTS) version.
Microsoft supports PowerShell until PowerShell reaches end-of-support or the version of Alpine reaches end-of-life.
The Docker images for the .NET SDK contain the latest versions of PowerShell. These images are available from the Microsoft Artifact Registry.
These images are built from official operating system (OS) images provide by the OS distributor. These images may not have the latest security updates. Microsoft recommends that you update the OS packages to the latest version to ensure the latest security updates are applied.
These images are provided for testing purposes. If you need a Docker image for a production workload, you should build and maintain your own.
For more information, see Install PowerShell on Alpine.
Debian uses APT (Advanced Package Tool) as a package manager.
Microsoft supports PowerShell until PowerShell reaches end-of-support or the version of Debian reaches end-of-life.
Install package files (.deb
) are also available from https://packages.microsoft.com/.
The Docker images for the .NET SDK contain the latest versions of PowerShell. These images are available from the Microsoft Artifact Registry.
These images are built from official operating system (OS) images provide by the OS distributor. These images may not have the latest security updates. Microsoft recommends that you update the OS packages to the latest version to ensure the latest security updates are applied.
These images are provided for testing purposes. If you need a Docker image for a production workload, you should build and maintain your own.
For more information, see Install PowerShell on Debian.
RHEL 7 uses yum and RHEL 8 uses the dnf package manager.
Microsoft supports PowerShell until PowerShell reaches end-of-support or the version of RHEL reaches end-of-support.
Install package files (.rpm
) are also available from https://packages.microsoft.com/.
PowerShell is tested on Red Hat Universal Base Images (UBI). For more information, see the UBI information page.
For more information, see Install PowerShell on RHEL.
Ubuntu uses APT (Advanced Package Tool) as a package manager.
Microsoft supports PowerShell until PowerShell reaches end-of-support or the version of Ubuntu reaches end-of-support.
Install package files (.deb
) are also available from https://packages.microsoft.com/.
The Docker images for the .NET SDK contain the latest versions of PowerShell. These images are available from the Microsoft Artifact Registry.
These images are built from official operating system (OS) images provide by the OS distributor. These images may not have the latest security updates. Microsoft recommends that you update the OS packages to the latest version to ensure the latest security updates are applied.
These images are provided for testing purposes. If you need a Docker image for a production workload, you should build and maintain your own.
Note
Ubuntu 24.10 (Oracular Oriole) is an interim release. Microsoft doesn't support interim releases of Ubuntu. For more information, see Community supported distributions.
For more information, see Install PowerShell on Ubuntu.
PowerShell can be installed on many distributions of Linux that aren't supported by Microsoft. In those cases, you may find support from the community for PowerShell on those platforms
To be supported by Microsoft, the Linux distribution must meet the following criteria:
For more information, see Community support for PowerShell on Linux.
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
package. For more
information, see Alternate ways to install PowerShell on Linux.
PowerShell feedback
PowerShell is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in