

If you are running on macOS Big Sur 11.5 or higher you may receive the following error message sudo installer -pkg powershell-7.3.5-osx-圆4.pkg -target / Change the name of the file to match the file you downloaded. You can double-click the file and follow the prompts, or install it from the terminal using theįollowing commands.

Whether you use the cask or the tap method, when updating to a newer version of PowerShell, use When new versions of PowerShell are released, update Homebrew's formulae and upgrade PowerShell: brew updateīrew upgrade powershell -cask

Now, you can install PowerShell: brew install -cask powershellįinally, verify that your install is working properly: pwsh If the brew command isn't found, you need to install Homebrew following Install PowerShell via Direct Download.Homebrew is the preferred package manager for macOS. There are several ways to install PowerShell on macOS. Installation of latest stable release via Homebrew on macOS 10.13 or higher The version you want using the binary archive method. If you need to run an older version of PowerShell side-by-side with PowerShell 7.3, install PowerShell 7.3 is an in-place upgrade that removes previous versions of PowerShell.
