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
34 changes: 15 additions & 19 deletions reference/docs-conceptual/install/alternate-install-methods.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Alternate ways to install PowerShell on non-Windows platforms.
ms.date: 03/18/2026
ms.date: 03/30/2026
title: Alternate ways to install PowerShell
---
# Alternate ways to install PowerShell
Expand All @@ -13,34 +13,30 @@ from the PowerShell Community or the operating system vendor. For support option

## Install on macOS using Homebrew

Homebrew is the preferred package manager for macOS. If the `brew` command isn't found, you need to
install Homebrew following [their instructions][12].
Homebrew is a popular package manager for macOS. To install Homebrew, follow the instructions on the
[Homebrew website][12].

> [!IMPORTANT]
> The brew formula is maintained and supported by the Homebrew community. The brew formula builds
> PowerShell from source code rather than installing a package built by Microsoft.
>
> If you previously installed PowerShell using the Homebrew cask, you must first uninstall the cask
> before you can successfully install using the Homebrew formula. Use the following commands to
> uninstall the cask:
>
> ```sh
> # Uninstall the PowerShell cask instance
> brew uninstall --cask powershell
> # Uninstall the PowerShell Preview cask instance
> brew uninstall --cask powershell-preview
> ```

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

Once `brew` is installed, install PowerShell using the following command:
Run the following command to install PowerShell using the Homebrew formula:

```sh
brew install powershell
```

If you previously installed PowerShell using the Homebrew cask, you must first uninstall the cask
before you can successfully install using the Homebrew formula. Use the following commands to
uninstall the cask:

```sh
# Uninstall the PowerShell cask instance
brew uninstall --cask powershell
# Uninstall the PowerShell Preview cask instance
brew uninstall --cask powershell-preview
```

### Update PowerShell 7

Run the following commands to update the installed version of PowerShell to the latest release.
Expand Down
2 changes: 1 addition & 1 deletion reference/docs-conceptual/learn/ps101/06-flow-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ as long as the counter variable `$i` is less than 5. It sleeps for a total of 10

### Do

There are two different `do` loops in PowerShell: `do until` and `do while`. `do until` runs until
There are two different `do` loops in PowerShell: `do until` and `do while`. `do until` runs while
the specified condition is false.

The following example is a numbers game that continues until the value you guess equals the same
Expand Down