Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Windows
ms.date: 11/18/2024
ms.date: 12/12/2024
title: Installing PowerShell on Windows
---
# Installing PowerShell on Windows
Expand Down Expand Up @@ -261,7 +261,7 @@ If there is an available upgrade, the output indicates the latest available vers

> [!NOTE]
> When upgrading, PowerShell won't upgrade from an LTS version to a non-LTS version. It only
> upgrades to the latest version of LTS, for example, from 7.2.3 to 7.2.24. To upgrade from an
> upgrades to the latest version of LTS, for example, from 7.4.3 to 7.4.6. To upgrade from an
> LTS release to a newer stable version or the next LTS, you need to install the new version with
> the MSI for that release.
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on macOS
ms.date: 11/18/2024
ms.date: 12/12/2024
title: Installing PowerShell on macOS
---

Expand Down Expand Up @@ -119,10 +119,7 @@ are:
- PowerShell 7.4
- x64 processors - [powershell-7.4.6-osx-x64.pkg][20]
- Arm64 processors - [powershell-7.4.6-osx-arm64.pkg][18]
- PowerShell 7.2 (LTS)
- x64 processors - [powershell-7.2.24-osx-x64.pkg][16]
- Arm64 processors - [powershell-7.2.24-osx-arm64.pkg][14]
- PowerShell 7.5-preview
- PowerShell 7.5-rc.1
- x64 processors - [powershell-7.5.0-rc.1-osx-x64.pkg][24]
- Arm64 processors - [powershell-7.5.0-rc.1-arm64.pkg][22]

Expand Down Expand Up @@ -191,9 +188,6 @@ current versions are:
- PowerShell 7.4 (LTS)
- x64 processors - [powershell-7.4.6-osx-x64.tar.gz][21]
- Arm64 processors - [powershell-7.4.6-osx-arm64.tar.gz][19]
- PowerShell 7.2 (LTS)
- x64 processors - [powershell-7.2.24-osx-x64.tar.gz][17]
- Arm64 processors - [powershell-7.2.24-osx-arm64.tar.gz][15]
- PowerShell 7.5-preview
- x64 processors - [powershell-7.5.0-rc.1-osx-x64.tar.gz][25]
- Arm64 processors - [powershell-7.5.0-rc.1-osx-arm64.tar.gz][23]
Expand Down Expand Up @@ -282,10 +276,6 @@ support those methods.
[11]: https://docs.brew.sh/Manpage#link-ln-options-formula
[12]: https://github.com/Homebrew
[13]: https://github.com/Homebrew/homebrew-cask
[14]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell-7.2.24-osx-arm64.pkg
[15]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell-7.2.24-osx-arm64.tar.gz
[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell-7.2.24-osx-x64.pkg
[17]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell-7.2.24-osx-x64.tar.gz
[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell-7.4.6-osx-arm64.pkg
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell-7.4.6-osx-arm64.tar.gz
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell-7.4.6-osx-x64.pkg
Expand Down
15 changes: 0 additions & 15 deletions reference/docs-conceptual/install/PowerShell-on-ARM.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ Arm versions of PowerShell 7.4 can be installed on the following platforms:

Support is based on the [.NET 8.0 Supported OS Lifecycle Policy][03].

## PowerShell 7.2

Arm versions of PowerShell 7.2 can be installed on the following platforms:

| OS | Architectures | Lifecycle |
| -------------------------------- | ------------- | -------------------------------------- |
| Windows 11 Client Version 22000+ | Arm64 | [Windows][05] |
| Windows 10 Client Version 1607+ | Arm64 | [Windows][05] |
| macOS | Arm64 | [macOS][04] |
| Raspberry Pi OS (Debian 12) | Arm32 | [Raspberry Pi OS][08] and [Debian][06] |
| Ubuntu 22.04, 20.04 | Arm32 | [Ubuntu][07] |

Support is based on the [.NET 6.0 Supported OS Lifecycle Policy][02].

## Installing PowerShell on Arm-based systems

For installation instructions, see the following articles:
Expand All @@ -65,7 +51,6 @@ Raspberry Pi

<!-- link references -->
[01]: community-support.md#raspberry-pi-os
[02]: https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md
[03]: https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md
[04]: https://support.apple.com/macos
[05]: https://support.microsoft.com/help/13853/windows-lifecycle-fact-sheet
Expand Down
3 changes: 1 addition & 2 deletions reference/docs-conceptual/install/install-alpine.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Alpine Linux
ms.date: 11/18/2024
ms.date: 12/12/2024
title: Installing PowerShell on Alpine Linux
---
# Installing PowerShell on Alpine Linux
Expand All @@ -21,7 +21,6 @@ Installation on Alpine is based on downloading tar.gz package from the [releases
to the package depends on the version of PowerShell you want to install.

- PowerShell 7.4.6 - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell-7.4.6-linux-musl-x64.tar.gz`
- PowerShell 7.2.24 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell-7.2.24-linux-alpine-x64.tar.gz`
- PowerShell 7.5.0-rc.1 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-rc.1/powershell-7.5.0-rc.1-linux-musl-x64.tar.gz`

Then, in the terminal, execute the following shell commands to install PowerShell 7.4:
Expand Down
6 changes: 2 additions & 4 deletions reference/docs-conceptual/install/install-debian.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Debian Linux
ms.date: 11/18/2024
ms.date: 12/12/2024
title: Installing PowerShell on Debian
---
# Installing PowerShell on Debian
Expand All @@ -17,7 +17,7 @@ All packages are available on our GitHub [releases][02] page. Before installing,

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

## Installation on Debian 10 or 11 via the Package Repository
## Installation on Debian 11 or 12 via the Package Repository

Microsoft builds and supports a variety of software products for Linux systems and makes them
available via Linux packaging clients (apt, dnf, yum, etc). These Linux software packages are hosted
Expand Down Expand Up @@ -71,8 +71,6 @@ The link to the current version is:

- PowerShell 7.4 (LTS) universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell_7.4.6-1.deb_amd64.deb`
- PowerShell 7.2 (LTS) universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell_7.2.24-1.deb_amd64.deb`
- PowerShell 7.5-preview universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-rc.1/powershell-preview_7.5.0-rc.1-1.deb_amd64.deb`

Expand Down
25 changes: 7 additions & 18 deletions reference/docs-conceptual/install/install-rhel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Red Hat Enterprise Linux (RHEL)
ms.date: 11/18/2024
ms.date: 12/12/2024
title: Installing PowerShell on Red Hat Enterprise Linux (RHEL)
---
# Installing PowerShell on Red Hat Enterprise Linux (RHEL)
Expand Down Expand Up @@ -35,9 +35,9 @@ Installing PowerShell from PMC is the preferred method of installation.

# Get version of RHEL
source /etc/os-release
if [ $(bc<<<"$VERSION_ID < 8") = 1 ]
if [ ${VERSION_ID%.*} -lt 8 ]
then majorver=7
elif [ $(bc<<<"$VERSION_ID < 9") = 1 ]
elif [ ${VERSION_ID%.*} -lt 9 ]
then majorver=8
else majorver=9
fi
Expand All @@ -51,19 +51,10 @@ sudo rpm -i packages-microsoft-prod.rpm
# Delete the downloaded package after installing
rm packages-microsoft-prod.rpm

# RHEL 7.x uses yum and RHEL 8+ uses dnf
if [ $(bc<<<"$majorver < 8") ]
then
# Update package index files
sudo yum update
# Install PowerShell
sudo yum install powershell -y
else
# Update package index files
sudo dnf update
# Install PowerShell
sudo dnf install powershell -y
fi
# Update package index files
sudo dnf update
# Install PowerShell
sudo dnf install powershell -y
```

## Installation via direct download
Expand All @@ -75,8 +66,6 @@ The link to the current version is:

- PowerShell 7.4.6 universal package for supported versions of RHEL
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell-7.4.6-1.rh.x86_64.rpm`
- PowerShell 7.2.24 universal package for supported versions of RHEL
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell-7.2.24-1.rh.x86_64.rpm`
- PowerShell 7.5.0-rc.1 universal package for supported versions of RHEL
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-rc.1/powershell-preview-7.5.0_preview.2-1.rh.x86_64.rpm`

Expand Down
4 changes: 1 addition & 3 deletions reference/docs-conceptual/install/install-ubuntu.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Ubuntu
ms.date: 11/18/2024
ms.date: 12/12/2024
title: Installing PowerShell on Ubuntu
---
# Installing PowerShell on Ubuntu
Expand Down Expand Up @@ -83,8 +83,6 @@ The link to the current version is:

- PowerShell 7.4 (LTS) universal package for supported versions of Ubuntu
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell_7.4.6-1.deb_amd64.deb`
- PowerShell 7.2 (LTS) universal package for supported versions of Ubuntu
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.24/powershell_7.2.24-1.deb_amd64.deb`
- PowerShell 7.5.0-rc.1 universal package for supported versions of Ubuntu
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-rc.1/powershell-preview_7.5.0-rc.1-1.deb_amd64.deb`

Expand Down
6 changes: 3 additions & 3 deletions reference/includes/alpine-support.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
author: sdwheeler
ms.author: sewhee
ms.date: 11/02/2024
ms.date: 12/12/2024
ms.topic: include
---
<!-- markdownlint-disable first-line-h1 -->
Expand All @@ -11,9 +11,9 @@ Microsoft supports PowerShell until [PowerShell reaches end-of-support][lifecycl
Docker images containing PowerShell 7.4 and PowerShell 7.5-preview for x64 are available from the
[Microsoft Artifact Registry][mcr] for the following versions of Alpine:

- Alpine 3.17 - OS support ends on 2024-11-22
- Alpine 3.20 - OS support ends on 2026-04-01

Docker images of PowerShell aren't available for Alpine 3.18, 3.19, and 3.20.
Docker images of PowerShell aren't available for Alpine 3.21.

> [!IMPORTANT]
> The Docker images are built from official operating system (OS) images provide by the OS
Expand Down