Skip to content

Commit b13b1b7

Browse files
authored
Refactor setup docs and include start instructions (#12819)
* Add startup instructions * Fix broken bookmark * Copilot feedback edits
1 parent 101945d commit b13b1b7

18 files changed

+530
-519
lines changed

reference/docs-conceptual/install/PowerShell-Support-Lifecycle.md

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,43 @@
11
---
22
description: Details the policies governing support for PowerShell.
3-
ms.date: 10/22/2025
3+
ms.date: 03/06/2026
44
ms.topic: lifecycle
55
title: PowerShell Support Lifecycle
66
---
77
# PowerShell Support Lifecycle
88

9-
> [!NOTE]
10-
> This document is about support for PowerShell. Windows PowerShell (1.0 - 5.1) is a component of
11-
> the Windows operating system. For more information, see
12-
> [Product and Services Lifecycle Information][03].
9+
There are multiple versions of PowerShell 7 that can be installed.
10+
11+
- **Stable release** - A stable release is a release that occurs between LTS releases. Stable
12+
releases can contain critical fixes, innovations, and new features. Microsoft supports a Stable
13+
release for about six months after the next LTS release.
1314

14-
PowerShell follows the [Microsoft Modern Lifecycle Policy][02]. Support dates follow the
15-
[.NET Support Policy][06]. In this servicing approach, customers can choose Long Term Support (LTS)
16-
releases or current releases.
15+
The current Stable release is PowerShell v7.5.4.
16+
- **Long Term Servicing (LTS) release** - An LTS release of PowerShell is an LTS release of .NET.
17+
Updates to an LTS release only contain critical security updates and servicing fixes that are
18+
designed to minimize impact on existing workloads.
1719

18-
An **LTS** release of PowerShell is an **LTS** release of .NET. Updates to an **LTS**
19-
release only contain critical security updates and servicing fixes that are designed to minimize
20-
impact on existing workloads.
20+
The current LTS release is PowerShell v7.4.13.
21+
- **Preview release** - A preview release is a version of PowerShell that's currently in
22+
development. Preview releases can contain bug fixes, new features, and experiments. Preview
23+
releases can contain bugs and might not be stable. For that reason, you shouldn't use them in
24+
production environments. Preview versions aren't officially supported. They allow you to test out
25+
new features and provide feedback. Your feedback is important and can influence the features that
26+
get released.
2127

22-
A **current** release is a release that occurs between **LTS** releases. Current releases can
23-
contain critical fixes, innovations, and new features. Microsoft supports a **current** release for
24-
six months after the next **LTS** release.
28+
The current Preview release is PowerShell v7.6.0-rc1.
2529

26-
Both **LTS** and **current** versions of PowerShell receive security updates and bug fixes.
27-
Microsoft only supports the latest update version of a release.
30+
PowerShell follows the [Microsoft Modern Lifecycle Policy][02]. The End of Support dates follow the
31+
[.NET Support Policy][06] for the version of .NET that the release of PowerShell was built upon.
32+
Both LTS and Stable releases of PowerShell receive security updates and bug fixes. Microsoft only
33+
supports the latest update version of a release.
34+
35+
> [!NOTE]
36+
> This document is about support for PowerShell, not Windows PowerShell. Windows PowerShell is a
37+
> component of the Windows operating system and is subject to the Windows support lifecycle. For
38+
> more information, see [Product and Services Lifecycle Information][03].
2839
29-
## Getting support
40+
## Support options
3041

3142
Microsoft provides support for PowerShell on a best-effort basis. Support for Windows PowerShell 5.1
3243
is provided through Windows support channels. You can use the standard paid support channels to get

reference/docs-conceptual/install/install-alpine.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
---
22
description: How to install PowerShell on Alpine Linux
3-
ms.date: 02/20/2026
4-
title: Install PowerShell on Alpine Linux
3+
ms.date: 03/06/2026
4+
title: Install PowerShell 7 on Alpine Linux
55
---
6-
# Install PowerShell on Alpine Linux
6+
# Install PowerShell 7 on Alpine Linux
77

8-
All packages are available on our GitHub [releases][03] page. After the package is installed, run
9-
`pwsh` from a terminal. Run `pwsh-preview` if you installed a preview release. Before installing,
10-
check the list of [Supported versions][02] below.
8+
There are multiple package versions of PowerShell 7 that can be installed. This article focuses on
9+
installing the latest stable release package. For more information about the package versions, see
10+
the [PowerShell Support Lifecycle][04] article.
1111

1212
Newer versions of PowerShell 7 replace existing previous versions of PowerShell 7. Preview versions
1313
of PowerShell can be installed side-by-side with other versions of PowerShell. Newer preview
1414
versions replace existing previous preview versions. If you need to run PowerShell 7.5 side-by-side
15-
with a previous version, reinstall the previous version using the [binary archive][05] method.
15+
with a previous version, reinstall the previous version using the [binary archive][03] method.
1616

17-
[!INCLUDE [Latest version](../../includes/latest-install.md)]
17+
## Install PowerShell 7
1818

19-
## Installation steps
19+
On Alpine Linux, PowerShell is installed from the `tar.gz` package downloaded from the
20+
[releases][01] page. Select the URL of the package version you want to install.
2021

21-
Installation on Alpine is based on downloading tar.gz package from the [releases][03] page. The URL
22-
to the package depends on the version of PowerShell you want to install.
23-
24-
- PowerShell 7.4 (LTS) - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-linux-musl-x64.tar.gz`
2522
- PowerShell 7.5 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-linux-musl-x64.tar.gz`
23+
- PowerShell 7.4 (LTS) - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-linux-musl-x64.tar.gz`
2624
- PowerShell 7.6-preview - `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-rc1/powershell-7.6.0-rc1-linux-musl-x64.tar.gz`
2725

28-
Then, in the terminal, execute the following shell commands to install PowerShell 7.4:
26+
Use the following shell commands to install PowerShell 7:
2927

3028
```sh
3129
#!/bin/bash
@@ -68,15 +66,14 @@ sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
6866
pwsh
6967
```
7068

71-
## Uninstall PowerShell
72-
73-
```sh
74-
sudo rm -rf /usr/bin/pwsh /opt/microsoft/powershell
75-
```
69+
## Start PowerShell 7
7670

77-
## PowerShell paths
71+
After the package is installed, run `pwsh` from a terminal. If you have installed a Preview package,
72+
run `pwsh-preview`.
7873

79-
- `$PSHOME` is `/opt/microsoft/powershell/7/`
74+
- The location of `$PSHOME` varies based on the package you installed.
75+
- For Stable and LTS packages: `/opt/microsoft/powershell/7/`
76+
- For Preview packages: `/opt/microsoft/powershell/7-preview/`
8077
- The profiles scripts are stored in the following locations:
8178
- AllUsersAllHosts - `$PSHOME/profile.ps1`
8279
- AllUsersCurrentHost - `$PSHOME/Microsoft.PowerShell_profile.ps1`
@@ -91,20 +88,26 @@ sudo rm -rf /usr/bin/pwsh /opt/microsoft/powershell
9188
The profiles respect PowerShell's per-host configuration, so the default host-specific profiles
9289
exists at `Microsoft.PowerShell_profile.ps1` in the same locations.
9390

94-
PowerShell respects the [XDG Base Directory Specification][04] on Linux.
91+
PowerShell respects the [XDG Base Directory Specification][02] on Linux.
92+
93+
## Uninstall PowerShell 7
94+
95+
```sh
96+
sudo rm -rf /usr/bin/pwsh /opt/microsoft/powershell
97+
```
9598

96-
## Supported versions
99+
## Supported OS versions
97100

98101
[!INCLUDE [Alpine support](../../includes/alpine-support.md)]
99102

100-
## Installation support
103+
## Supported installation methods
101104

102-
Microsoft supports the installation methods in this document. There may be other methods of
103-
installation available from other third-party sources. While those tools and methods may work,
104-
Microsoft can't support those methods.
105+
Microsoft supports the installation methods in this document. There may be other third-party methods
106+
of installation available from other sources. While those tools and methods may work, Microsoft
107+
can't support those methods.
105108

106109
<!-- link references -->
107-
[02]: #supported-versions
108-
[03]: https://aka.ms/PowerShell-Release?tag=stable
109-
[04]: https://specifications.freedesktop.org/basedir/latest/
110-
[05]: install-other-linux.md#binary-archives
110+
[01]: https://github.com/PowerShell/PowerShell/releases
111+
[02]: https://specifications.freedesktop.org/basedir/latest/
112+
[03]: install-other-linux.md#binary-archives
113+
[04]: PowerShell-Support-Lifecycle.md

reference/docs-conceptual/install/install-debian.md

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
11
---
22
description: How to install PowerShell on Debian Linux
3-
ms.date: 02/20/2026
4-
title: Install PowerShell on Debian
3+
ms.date: 03/06/2026
4+
title: Install PowerShell 7 on Debian
55
---
6-
# Install PowerShell on Debian
6+
# Install PowerShell 7 on Debian
77

8-
All packages are available on our GitHub [releases][02] page. Before installing, check the list of
9-
[Supported versions][01] below. After the package is installed, run `pwsh` from a terminal. Run
10-
`pwsh-lts` if you installed a preview release.
8+
There are multiple package versions of PowerShell 7 that can be installed. This article focuses on
9+
installing the latest stable release package. For more information about the package versions, see
10+
the [PowerShell Support Lifecycle][05] article.
1111

1212
Newer versions of PowerShell 7 replace existing previous versions of PowerShell 7. Preview versions
1313
of PowerShell can be installed side-by-side with other versions of PowerShell. Newer preview
1414
versions replace existing previous preview versions. If you need to run PowerShell 7.5 side-by-side
15-
with a previous version, reinstall the previous version using the [binary archive][05] method.
15+
with a previous version, reinstall the previous version using the [binary archive][04] method.
1616

17-
Debian uses APT (Advanced Package Tool) as a package manager.
17+
## Choose an installation method
1818

19-
[!INCLUDE [Latest version](../../includes/latest-install.md)]
19+
On Debian Linux, you can install PowerShell using the universal `.deb` package from the Microsoft
20+
package repository or by downloading a file from the GitHub [releases][01] page.
2021

21-
## Installation on Debian 11 or 12 via the Package Repository
22+
### Install PowerShell 7 from the Package Repository
2223

2324
Microsoft builds and supports a variety of software products for Linux systems and makes them
2425
available via Linux packaging clients (apt, dnf, yum, etc). These Linux software packages are hosted
25-
on the _Linux package repository for Microsoft products_, [https://packages.microsoft.com][03], also
26+
on the _Linux package repository for Microsoft products_, [https://packages.microsoft.com][02], also
2627
known as _PMC_.
2728

2829
Installing PowerShell from PMC is the preferred method of installation.
2930

3031
> [!NOTE]
31-
> This script only works for supported versions of Debian.
32+
> This script only works for supported versions of Debian that have a package published to the
33+
> Microsoft package repository.
3234
3335
```sh
3436
#!/bin/bash
@@ -64,17 +66,15 @@ sudo apt-get install -y powershell
6466
pwsh
6567
```
6668

67-
## Installation via direct download
69+
### Manually download and install PowerShell 7
6870

69-
PowerShell 7.2 introduced a universal package that makes installation easier. Download the universal
70-
package from the [releases][02] page onto your Debian machine.
71+
Download the universal package from the GitHub releases page. Choose the link for the version you
72+
want to install.
7173

72-
The link to the current version is:
73-
74-
- PowerShell 7.4 (LTS) universal package for supported versions of Debian
75-
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell_7.4.13-1.deb_amd64.deb`
7674
- PowerShell 7.5 universal package for supported versions of Debian
7775
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell_7.5.4-1.deb_amd64.deb`
76+
- PowerShell 7.4 (LTS) universal package for supported versions of Debian
77+
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell_7.4.13-1.deb_amd64.deb`
7878
- PowerShell 7.6-preview universal package for supported versions of Debian
7979
- `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-rc1/powershell-preview_7.6.0-rc1-1.deb_amd64.deb`
8080

@@ -109,15 +109,14 @@ rm powershell_7.5.4-1.deb_amd64.deb
109109
pwsh
110110
```
111111

112-
## Uninstall PowerShell
112+
## Start PowerShell 7
113113

114-
```sh
115-
sudo apt-get remove powershell
116-
```
114+
After the package is installed, run `pwsh` from a terminal. If you have installed a Preview package,
115+
run `pwsh-preview`.
117116

118-
## PowerShell paths
119-
120-
- `$PSHOME` is `/opt/microsoft/powershell/7/`
117+
- The location of `$PSHOME` varies based on the package you installed.
118+
- For Stable and LTS packages: `/opt/microsoft/powershell/7/`
119+
- For Preview packages: `/opt/microsoft/powershell/7-preview/`
121120
- The profiles scripts are stored in the following locations:
122121
- AllUsersAllHosts - `$PSHOME/profile.ps1`
123122
- AllUsersCurrentHost - `$PSHOME/Microsoft.PowerShell_profile.ps1`
@@ -129,21 +128,30 @@ sudo apt-get remove powershell
129128
- Default modules - `$PSHOME/Modules`
130129
- PSReadLine history is recorded in `~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt`
131130

132-
PowerShell respects the [XDG Base Directory Specification][04] on Linux.
131+
The profiles respect PowerShell's per-host configuration, so the default host-specific profiles
132+
exists at `Microsoft.PowerShell_profile.ps1` in the same locations.
133+
134+
PowerShell respects the [XDG Base Directory Specification][03] on Linux.
135+
136+
## Uninstall PowerShell 7
137+
138+
```sh
139+
sudo apt-get remove powershell
140+
```
133141

134-
## Supported versions
142+
## Supported OS versions
135143

136144
[!INCLUDE [Debian support](../../includes/debian-support.md)]
137145

138-
## Installation support
146+
## Supported installation methods
139147

140148
Microsoft supports the installation methods in this document. There may be other methods of
141149
installation available from other third-party sources. While those tools and methods may work,
142150
Microsoft can't support those methods.
143151

144152
<!-- link references -->
145-
[01]: #supported-versions
146-
[02]: https://aka.ms/PowerShell-Release?tag=stable
147-
[03]: https://packages.microsoft.com
148-
[04]: https://specifications.freedesktop.org/basedir/latest/
149-
[05]: install-other-linux.md#binary-archives
153+
[01]: https://github.com/PowerShell/PowerShell/releases
154+
[02]: https://packages.microsoft.com
155+
[03]: https://specifications.freedesktop.org/basedir/latest/
156+
[04]: install-other-linux.md#binary-archives
157+
[05]: PowerShell-Support-Lifecycle.md

0 commit comments

Comments
 (0)