Skip to content

Commit c0f54c6

Browse files
Merge pull request #12462 from MicrosoftDocs/main
Auto Publish – main to live - 2025-10-23 22:00 UTC
2 parents 40d1904 + 0d2a011 commit c0f54c6

File tree

1 file changed

+70
-71
lines changed

1 file changed

+70
-71
lines changed

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

Lines changed: 70 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
22
description: Information about installing PowerShell on macOS
3-
ms.date: 10/16/2025
3+
ms.date: 10/23/2025
44
title: Installing PowerShell on macOS
55
---
66

77
# Installing PowerShell on macOS
88

99
PowerShell 7 or higher requires macOS 13 and higher. All packages are available on the GitHub
10-
[releases][09] page for PowerShell. After the package is installed, run `pwsh` from a terminal.
11-
Before installing, check the list of [Supported versions][06].
10+
[releases][11] page for PowerShell. After the package is installed, run `pwsh` from a terminal.
11+
Before installing, check the list of [Supported versions][08].
1212

1313
> [!NOTE]
1414
> PowerShell 7.4 is an in-place upgrade that removes previous versions of PowerShell 7. You can
1515
> install preview versions of PowerShell side-by-side with other versions of PowerShell. If you need
1616
> to run PowerShell 7.4 side-by-side with a previous version, reinstall the previous version using
17-
> the [binary archive][04] method.
17+
> the [binary archive][03] method.
1818
1919
[!INCLUDE [Latest version](../../includes/latest-install.md)]
2020

2121
## Install the latest stable release of PowerShell
2222

2323
There are several ways to install PowerShell on macOS. Choose one of the following methods:
2424

25-
- Install using [Homebrew][27]. Homebrew is the preferred package manager for macOS.
26-
- Install via [Direct Download][04].
27-
- Install as [a .NET Global tool][28].
25+
- Install using [Homebrew][05]. Homebrew is the preferred package manager for macOS.
26+
- Install via [Direct Download][06].
27+
- Install as [a .NET Global tool][04].
2828
- Install from [binary archives][03].
2929

3030
## Install using Homebrew
3131

32-
If the `brew` command isn't found, you need to install Homebrew following [their instructions][10].
32+
If the `brew` command isn't found, you need to install Homebrew following [their instructions][12].
3333

3434
```bash
3535
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@@ -118,62 +118,60 @@ brew upgrade powershell-lts
118118
> continues to use the older version of PowerShell.
119119
>
120120
> If you decide to use different methods, there are ways to correct the issue using the
121-
> [Homebrew link method][11].
121+
> [Homebrew link method][13].
122122
123-
## Installation via Direct Download
123+
## Install the package via Direct Download
124124

125125
Starting with version 7.2, PowerShell supports the Apple M-series Arm-based processors. Download the
126-
install package from the [releases][09] page onto your Mac. The links to the current versions are:
126+
install package from the [releases][11] page onto your Mac. The links to the current versions are:
127127

128128
- PowerShell 7.5
129-
- Arm64 processors - [powershell-7.5.4-arm64.pkg][22]
130-
- x64 processors - [powershell-7.5.4-osx-x64.pkg][24]
129+
- Arm64 processors - [powershell-7.5.4-arm64.pkg][20]
130+
- x64 processors - [powershell-7.5.4-osx-x64.pkg][22]
131131

132132
- PowerShell 7.4
133-
- Arm64 processors - [powershell-7.4.13-osx-arm64.pkg][18]
134-
- x64 processors - [powershell-7.4.13-osx-x64.pkg][20]
133+
- Arm64 processors - [powershell-7.4.13-osx-arm64.pkg][16]
134+
- x64 processors - [powershell-7.4.13-osx-x64.pkg][18]
135135

136136
There are two ways to install PowerShell using the Direct Download method.
137137

138138
### Using Finder
139139

140140
Install PowerShell using Finder:
141141

142-
1. Open Finder
142+
1. Open **Finder**
143143
1. Locate the downloaded package
144144
1. Double-click the file
145-
1. Follow the prompts
146145

147-
You might receive the following error message when installing the package:
146+
You will receive the following error message when installing the package:
148147

149-
> "powershell-7.5.4-osx-arm64.pkg" cannot be opened because Apple cannot check it for malicious
150-
> software.
148+
> "powershell-7.5.4-osx-arm64.pkg" Not Opened
149+
>
150+
> Apple could not verify "powershell-7.5.4-osx-arm64.pkg" is free from malware that may harm
151+
> your Mac or compromise your privacy.
151152
152-
To work around this issue using Finder:
153+
1. Select the **Done** button to close the prompt.
153154

154-
1. Locate the downloaded package in Finder
155-
1. Control-click (click while pressing the <kbd>Control (or Ctrl)</kbd> key on the package
156-
1. Select **Open** from the context menu
155+
This error message comes from the Gatekeeper feature of macOS. For more information, see
156+
[Safely open apps on your Mac - Apple Support][25].
157157

158-
### Using Terminal
159-
160-
Install PowerShell from the terminal. Change the filename to match the package you downloaded.
161-
162-
```sh
163-
sudo installer -pkg ./Downloads/powershell-7.5.4-osx-arm64.pkg -target /
164-
```
158+
After you've tried to open the package, follow these steps:
165159

166-
You might receive the following error message when installing the package:
160+
1. Open **System Settings**.
161+
1. Select **Privacy & Security** and scroll down to the **Security** section.
162+
1. Select the **Open Anyway** button to confirm your intent to install PowerShell.
163+
1. When the warning prompt reappears, select **Open Anyway**.
164+
1. Enter username and password to allow the installation to proceed.
167165

168-
> "powershell-7.5.4-osx-arm64.pkg" cannot be opened because Apple cannot check it for malicious
169-
> software.
166+
### Using Terminal
170167

171-
There are a few different ways to work around this issue from the command line:
168+
To install the PowerShell package from the command line, you must bypass the Gatekeeper checks. Use
169+
one of the following methods to install the package:
172170

173171
- Run the `installer` command with the **allowUntrusted** flag:
174172

175173
```sh
176-
`sudo installer -allowUntrusted -pkg ./Downloads/powershell-7.5.4-osx-arm64.pkg -target /`
174+
sudo installer -allowUntrusted -pkg ./Downloads/powershell-7.5.4-osx-arm64.pkg -target /
177175
```
178176

179177
- Or install the package as you normally would after running one of the following commands:
@@ -204,22 +202,22 @@ dependencies.
204202
> [!NOTE]
205203
> You can use this method to install any version of PowerShell including the latest:
206204
>
207-
> - Stable release: [https://aka.ms/powershell-release?tag=stable][09]
208-
> - LTS release: [https://aka.ms/powershell-release?tag=lts][07]
209-
> - Preview release: [https://aka.ms/powershell-release?tag=preview][08]
205+
> - Stable release: [https://aka.ms/powershell-release?tag=stable][11]
206+
> - LTS release: [https://aka.ms/powershell-release?tag=lts][09]
207+
> - Preview release: [https://aka.ms/powershell-release?tag=preview][10]
210208
211-
### Installing binary archives on macOS
209+
### Install binary archives on macOS
212210

213-
Download the install package from the [releases][09] page onto your Mac. The links to the current
211+
Download the install package from the [releases][11] page onto your Mac. The links to the current
214212
versions are:
215213

216214
- PowerShell 7.5-preview
217-
- Arm64 processors - [powershell-7.5.4-osx-arm64.tar.gz][23]
218-
- x64 processors - [powershell-7.5.4-osx-x64.tar.gz][25]
215+
- Arm64 processors - [powershell-7.5.4-osx-arm64.tar.gz][21]
216+
- x64 processors - [powershell-7.5.4-osx-x64.tar.gz][23]
219217

220218
- PowerShell 7.4 (LTS)
221-
- Arm64 processors - [powershell-7.4.13-osx-arm64.tar.gz][19]
222-
- x64 processors - [powershell-7.4.13-osx-x64.tar.gz][21]
219+
- Arm64 processors - [powershell-7.4.13-osx-arm64.tar.gz][17]
220+
- x64 processors - [powershell-7.4.13-osx-x64.tar.gz][19]
223221

224222
Use the following commands to install PowerShell from the binary archive. Change the download URL to
225223
match the version you want to install.
@@ -255,7 +253,7 @@ If you installed PowerShell via direct download, PowerShell must be removed manu
255253
sudo rm -rf /usr/local/bin/pwsh /usr/local/microsoft/powershell
256254
```
257255

258-
To remove the extra PowerShell paths, refer to the [paths][05] section in this document and remove
256+
To remove the extra PowerShell paths, refer to the [paths][07] section in this document and remove
259257
the paths using `sudo rm`.
260258

261259
> [!NOTE]
@@ -273,7 +271,7 @@ the paths using `sudo rm`.
273271
- Default modules are read from `$PSHOME/Modules`
274272
- PSReadLine history is recorded to `~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt`
275273

276-
PowerShell respects the [XDG Base Directory Specification][26] on macOS.
274+
PowerShell respects the [XDG Base Directory Specification][24] on macOS.
277275

278276
## Supported versions
279277

@@ -287,32 +285,33 @@ support those methods.
287285

288286
## Additional resources
289287

290-
- [Homebrew Web][10]
291-
- [Homebrew GitHub Repository][12]
292-
- [Homebrew-Cask][13]
288+
- [Homebrew Web][12]
289+
- [Homebrew GitHub Repository][14]
290+
- [Homebrew-Cask][15]
293291

294292
<!-- link references -->
295293
[01]: /dotnet/core/sdk
296294
[02]: /dotnet/core/tools/global-tools
297295
[03]: #binary-archives
298-
[04]: #installation-via-direct-download
299-
[05]: #paths
300-
[06]: #supported-versions
301-
[07]: https://aka.ms/powershell-release?tag=lts
302-
[08]: https://aka.ms/powershell-release?tag=preview
303-
[09]: https://aka.ms/powershell-release?tag=stable
304-
[10]: https://brew.sh/
305-
[11]: https://docs.brew.sh/Manpage#link-ln-options-formula
306-
[12]: https://github.com/Homebrew
307-
[13]: https://github.com/Homebrew/homebrew-cask
308-
[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-arm64.pkg
309-
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-arm64.tar.gz
310-
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-x64.pkg
311-
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-x64.tar.gz
312-
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.pkg
313-
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.tar.gz
314-
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.pkg
315-
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.tar.gz
316-
[26]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
317-
[27]: #install-using-homebrew
318-
[28]: #install-as-a-net-global-tool
296+
[04]: #install-as-a-net-global-tool
297+
[05]: #install-using-homebrew
298+
[06]: #install-the-package-via-direct-download
299+
[07]: #paths
300+
[08]: #supported-versions
301+
[09]: https://aka.ms/powershell-release?tag=lts
302+
[10]: https://aka.ms/powershell-release?tag=preview
303+
[11]: https://aka.ms/powershell-release?tag=stable
304+
[12]: https://brew.sh/
305+
[13]: https://docs.brew.sh/Manpage#link-ln-options-formula
306+
[14]: https://github.com/Homebrew
307+
[15]: https://github.com/Homebrew/homebrew-cask
308+
[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-arm64.pkg
309+
[17]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-arm64.tar.gz
310+
[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-x64.pkg
311+
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-osx-x64.tar.gz
312+
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.pkg
313+
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.tar.gz
314+
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.pkg
315+
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.tar.gz
316+
[24]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
317+
[25]: https://support.apple.com/102445

0 commit comments

Comments
 (0)