Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

Install PowerShell on Linux

  • 2023-09-05
Feedback

In this article

PowerShell can be installed on several different Linux distributions. Most Linux platforms anddistributions have a major release each year, and provide a package manager that's used to installPowerShell. PowerShell can be installed on some distributions of Linux that aren't supported byMicrosoft. In those cases, you may find support from the community for PowerShell on thoseplatforms.

For more information, see thePowerShell Support Lifecycle documentation.

This article lists the supported Linux distributions and package managers. All PowerShell releasesremain supported until either the version of PowerShell or the version of the Linux distributionreaches end-of-support.

For the best compatibility, choose a long-term release (LTS) version.

Alpine

Microsoft supports PowerShell untilPowerShell reaches end-of-support or the version ofAlpine reaches end-of-life.

The Docker images for the .NET SDK contain the latest versions of PowerShell. These images areavailable from theMicrosoft 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 OSpackages 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 productionworkload, you should build and maintain your own.

For more information, seeInstall PowerShell on Alpine.

Debian

Debian uses APT (Advanced Package Tool) as a package manager.

Microsoft supports PowerShell untilPowerShell reaches end-of-support or the version ofDebian reaches end-of-life.

Install package files (.deb) are also available fromhttps://packages.microsoft.com/.

The Docker images for the .NET SDK contain the latest versions of PowerShell. These images areavailable from theMicrosoft 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 OSpackages 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 productionworkload, you should build and maintain your own.

For more information, seeInstall PowerShell on Debian.

Red Hat Enterprise Linux (RHEL)

RHEL 7 uses yum and RHEL 8 uses the dnf package manager.

Microsoft supports PowerShell untilPowerShell reaches end-of-support or the version ofRHEL reaches end-of-support.

Install package files (.rpm) are also available fromhttps://packages.microsoft.com/.

  • RHEL 10 - OS support ends on 2035-05-31
  • RHEL 9 - OS support ends on 2032-05-31
  • RHEL 8 - OS support ends on 2029-05-31

PowerShell is tested on Red Hat Universal Base Images (UBI). For more information, see theUBI information page.

For more information, seeInstall PowerShell on RHEL.

Ubuntu

Ubuntu uses APT (Advanced Package Tool) as a package manager.

Microsoft supports PowerShell untilPowerShell reaches end-of-support or the version ofUbuntu reaches end-of-support.

Install package files (.deb) are also available fromhttps://packages.microsoft.com/.

The Docker images for the .NET SDK contain the latest versions of PowerShell. These images areavailable from theMicrosoft 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 OSpackages 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 productionworkload, you should build and maintain your own.

Note

Ubuntu 24.10 (Oracular Oriole) is an interim release. Microsoft doesn't supportinterim releases of Ubuntu. For more information, seeCommunity supported distributions.

For more information, seeInstall PowerShell on Ubuntu.

Community supported distributions

PowerShell can be installed on many distributions of Linux that aren't supported by Microsoft. Inthose 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:

  • The version and architecture of the distribution is supported by .NET Core.
  • The version of the distribution is supported for at least one year.
  • The version of the distribution isn't an interim release or equivalent.
  • The PowerShell team has tested the version of the distribution.

For more information, seeCommunity support for PowerShell on Linux.

Alternate installation methods

There are three other ways to install PowerShell on Linux, including Linux distributions that aren'tofficially supported. You can try to install PowerShell using the PowerShell Snap Package. You canalso try deploying PowerShell binaries directly using the Linuxtar.gz package. For moreinformation, seeAlternate ways to install PowerShell on Linux.

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo