Skip to content

Commit fb8c8eb

Browse files
authored
Update install notes for SxS with PS6 (#5515)
1 parent e9409a4 commit fb8c8eb

File tree

4 files changed

+62
-30
lines changed

4 files changed

+62
-30
lines changed

reference/docs-conceptual/install/Installing-PowerShell-Core-on-Linux.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ the OS in separate steps.
2020
All packages are available on our GitHub [releases][] page. After the package is installed, run
2121
`pwsh` from a terminal. Run `pwsh-preview` if you installed a [Preview release](#installing-preview-releases).
2222

23+
> [!NOTE]
24+
> PowerShell 7 is an in-place upgrade that removes PowerShell Core 6.x.
25+
>
26+
> The `/usr/local/microsoft/powershell/6` folder is replaced by `/usr/local/microsoft/powershell/7`.
27+
>
28+
> If you need to run PowerShell 6 side-by-side with PowerShell 7, reinstall PowerShell 6 using the
29+
> [binary archive](#binary-archives) method.
30+
2331
[u16]: #ubuntu-1604
2432
[u1804]: #ubuntu-1804
2533
[u1810]: #ubuntu-1810
@@ -35,12 +43,6 @@ All packages are available on our GitHub [releases][] page. After the package is
3543
[snap]: #snap-package
3644
[tar]: #binary-archives
3745

38-
> [!TIP]
39-
> If you already have the [.NET Core SDK](/dotnet/core/sdk) installed, it’s easy to install PowerShell as a [.NET Global tool](/dotnet/core/tools/global-tools).
40-
>
41-
> ```
42-
> dotnet tool install --global PowerShell
43-
> ```
4446

4547
## Installing Preview Releases
4648

@@ -717,6 +719,15 @@ sudo ~/powershell/pwsh -c New-Item -ItemType SymbolicLink -Path "/usr/bin/pwsh"
717719
rm -rf ~/powershell
718720
```
719721

722+
## Install as a .NET Global tool
723+
724+
If you already have the [.NET Core SDK](/dotnet/core/sdk) installed, it's easy to install PowerShell
725+
as a [.NET Global tool](/dotnet/core/tools/global-tools).
726+
727+
```
728+
dotnet tool install --global PowerShell
729+
```
730+
720731
## Binary Archives
721732

722733
PowerShell binary `tar.gz` archives are provided for Linux platforms to enable advanced deployment

reference/docs-conceptual/install/Installing-PowerShell-Core-on-Windows.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ ms.date: 08/06/2018
77

88
There are multiple ways to install PowerShell Core in Windows.
99

10-
> [!TIP]
11-
> If you already have the [.NET Core SDK](/dotnet/core/sdk) installed, it’s easy to install PowerShell as a [.NET Global tool](/dotnet/core/tools/global-tools).
12-
>
13-
> ```
14-
> dotnet tool install --global PowerShell
15-
> ```
16-
1710
## Prerequisites
1811

1912
To enable PowerShell remoting over WSMan, the following prerequisites need to be met:
@@ -32,7 +25,6 @@ and later), download the MSI package from our GitHub [releases][releases] page.
3225
may need to click to expand it.
3326

3427
The MSI file looks like this - `PowerShell-<version>-win-<os-arch>.msi`
35-
<!-- TODO: should be updated to point to the Download Center as well -->
3628

3729
Once downloaded, double-click the installer and follow the prompts.
3830

@@ -41,6 +33,17 @@ The installer creates a shortcut in the Windows Start Menu.
4133
- By default the package is installed to `$env:ProgramFiles\PowerShell\<version>`
4234
- You can launch PowerShell via the Start Menu or `$env:ProgramFiles\PowerShell\<version>\pwsh.exe`
4335

36+
> [!NOTE]
37+
> PowerShell 7 installs to a new directory and runs side-by-side with Windows PowerShell 5.1. For
38+
> PowerShell Core 6.x, PowerShell 7 is an in-place upgrade that removes PowerShell Core 6.x.
39+
>
40+
> - PowerShell 7 is installed to `%programfiles%\PowerShell\7`
41+
> - The `%programfiles%\PowerShell\7` folder is added to `$env:PATH`
42+
> - The `%programfiles%\PowerShell\6` folder is deleted
43+
>
44+
> If you need to run PowerShell 6 side-by-side with PowerShell 7, reinstall PowerShell 6 using the
45+
> [ZIP install](#zip) method.
46+
4447
### Administrative install from the command line
4548

4649
MSI packages can be installed from the command line. This allows administrators to deploy packages
@@ -183,6 +186,15 @@ Nano Server and the configuration of its remote endpoint.
183186
- If you want WSMan-based remoting, follow the instructions to create a remoting endpoint using the
184187
["another instance technique"](../learn/remoting/WSMan-Remoting-in-PowerShell-Core.md#executed-by-another-instance-of-powershell-on-behalf-of-the-instance-that-it-will-register).
185188

189+
## Install as a .NET Global tool
190+
191+
If you already have the [.NET Core SDK](/dotnet/core/sdk) installed, it's easy to install PowerShell
192+
as a [.NET Global tool](/dotnet/core/tools/global-tools).
193+
194+
```
195+
dotnet tool install --global PowerShell
196+
```
197+
186198
## How to create a remoting endpoint
187199

188200
PowerShell Core supports the PowerShell Remoting Protocol (PSRP) over both WSMan and SSH. For more

reference/docs-conceptual/install/Installing-PowerShell-Core-on-macOS.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ PowerShell Core supports macOS 10.12 and higher.
1010
All packages are available on our GitHub [releases][] page.
1111
After the package is installed, run `pwsh` from a terminal.
1212

13-
> [!TIP]
14-
> If you already have the [.NET Core SDK](/dotnet/core/sdk) installed, it’s easy to install PowerShell as a [.NET Global tool](/dotnet/core/tools/global-tools).
13+
> [!NOTE]
14+
> PowerShell 7 is an in-place upgrade that removes PowerShell Core 6.x.
15+
>
16+
> The `/usr/local/microsoft/powershell/6` folder is replaced by `/usr/local/microsoft/powershell/7`.
1517
>
16-
> ```
17-
> dotnet tool install --global PowerShell
18-
> ```
18+
> If you need to run PowerShell 6 side-by-side with PowerShell 7, reinstall PowerShell 6 using the
19+
> [binary archive](#binary-archives) method.
1920
2021
## About Brew
2122

22-
[Homebrew][brew] is the preferred package manager for macOS.
23-
If the `brew` command is not found, you need to install Homebrew following [their instructions][brew].
24-
Otherwise you may install PowerShell via [Direct Download](#installation-via-direct-download) or from [Binary Archives](#binary-archives).
23+
[Homebrew][brew] is the preferred package manager for macOS. If the `brew` command is not found, you
24+
need to install Homebrew following [their instructions][brew]. Otherwise you may install PowerShell
25+
via [Direct Download](#installation-via-direct-download) or from
26+
[Binary Archives](#binary-archives).
2527

2628
## Installation of latest stable release via Homebrew on macOS 10.12 or higher
2729

@@ -105,6 +107,15 @@ sudo installer -pkg powershell-6.2.0-osx-x64.pkg -target /
105107

106108
Install [OpenSSL](#install-openssl). OpenSSL is needed for PowerShell remoting and CIM operations.
107109

110+
## Install as a .NET Global tool
111+
112+
If you already have the [.NET Core SDK](/dotnet/core/sdk) installed, it's easy to install PowerShell
113+
as a [.NET Global tool](/dotnet/core/tools/global-tools).
114+
115+
```
116+
dotnet tool install --global PowerShell
117+
```
118+
108119
## Binary Archives
109120

110121
PowerShell binary `tar.gz` archives are provided for the macOS platform

reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-70.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,15 @@ For more up-to-date information about supported operating systems and support li
6161
PowerShell 7 installs to a new directory and runs side-by-side with Windows PowerShell 5.1. For
6262
PowerShell Core 6.x, PowerShell 7 is an in-place upgrade that removes PowerShell Core 6.x.
6363

64-
- Windows PowerShell 5.1 : `C:\Windows\System32\WindowsPowerShell\v1.0` will add
65-
`%programfiles%\PowerShell\7`
64+
- PowerShell 7 is installed to `%programfiles%\PowerShell\7`
65+
- The `%programfiles%\PowerShell\7` folder is added to `$env:PATH`
6666

67-
PowerShell 7 will upgrade previous versions of PowerShell Core 6.x:
67+
The PowerShell 7 installer packages upgrade previous versions of PowerShell Core 6.x:
6868

6969
- PowerShell Core 6.x on Windows: `%programfiles%\PowerShell\6` is replaced by
70-
`%programfiles%\PowerShell\7`
71-
- Linux: `/opt/microsoft/powershell/6` is replaced by
72-
`/opt/microsoft/powershell/7`
73-
- macOS: `/usr/local/microsoft/powershell/6` is replaced by
74-
`/usr/local/microsoft/powershell/7`
70+
`%programfiles%\PowerShell\7`
71+
- Linux: `/opt/microsoft/powershell/6` is replaced by `/opt/microsoft/powershell/7`
72+
- macOS: `/usr/local/microsoft/powershell/6` is replaced by `/usr/local/microsoft/powershell/7`
7573

7674
> [!NOTE]
7775
> In Windows PowerShell, the executable to launch PowerShell is named `powershell.exe`. In version 6

0 commit comments

Comments
 (0)