diff --git a/reference/docs-conceptual/install/alternate-install-methods.md b/reference/docs-conceptual/install/alternate-install-methods.md index 61129cc4169..9301d78ccca 100644 --- a/reference/docs-conceptual/install/alternate-install-methods.md +++ b/reference/docs-conceptual/install/alternate-install-methods.md @@ -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 @@ -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. diff --git a/reference/docs-conceptual/learn/ps101/06-flow-control.md b/reference/docs-conceptual/learn/ps101/06-flow-control.md index aea3060a32b..1e65ba1ae07 100644 --- a/reference/docs-conceptual/learn/ps101/06-flow-control.md +++ b/reference/docs-conceptual/learn/ps101/06-flow-control.md @@ -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