Skip to content

Brew Warning: powershell@preview has been deprecated because it does not pass the macOS Gatekeeper check! It will be disabled on 2026-09-01. #26629

Description

Prerequisites

Steps to reproduce

brew update && brew upgrade && brew cleanup

Expected behavior

#installs and updates both normal and preview without warnings
brew install powershell
brew install powershell@preview
brew update && brew upgrade powershell
brew update && brew upgrade powershell@preview

Actual behavior

Warning: powershell has been deprecated because it does not pass the macOS Gatekeeper check! It will be disabled on 2026-09-01.
Warning: powershell@preview has been deprecated because it does not pass the macOS Gatekeeper check! It will be disabled on 2026-09-01.

Error details

# installing regular pwsh

brew install powershell
Warning: powershell has been deprecated because it does not pass the macOS Gatekeeper check! It will be disabled on 2026-09-01.
==> Caveats
To use Homebrew in PowerShell, run the following in a PowerShell session:
  New-Item -Path (Split-Path -Parent -Path $PROFILE.CurrentUserAllHosts) -ItemType Directory -Force
  Add-Content -Path $PROFILE.CurrentUserAllHosts -Value '$(/opt/homebrew/bin/brew shellenv) | Invoke-Expression'

# installing pwsh preview

brew install powershell@preview
Warning: powershell@preview has been deprecated because it does not pass the macOS Gatekeeper check! It will be disabled on 2026-09-01.
==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.pkg
Already downloaded: /Users/christianpiet/Library/Caches/Homebrew/downloads/e03ebabcb3a770cccbb3e18e943cfff5761e596422d77fb738ece1949132934c--powershell-7.5.4-osx-arm64.pkg
==> Installing Cask powershell
==> Running installer for powershell with `sudo` (which may request your password)...
installer: Package name is PowerShell - 7.5.4
installer: Installing at base path /
installer: The install was successful.
🍺  powershell was successfully installed!

# updating preview

brew update && brew upgrade
Warning: powershell@preview has been deprecated because it does not pass the macOS Gatekeeper check! It will be disabled on 2026-09-01.
==> Fetching downloads for: powershell@preview
✔︎ Cask powershell@preview (7.6.0-pre [Verified     72.3MB/ 72.3MB]
==> Upgrading 1 outdated package:
powershell@preview 7.6.0-preview.5 -> 7.6.0-preview.6
==> Upgrading powershell@preview
==> Caveats
To use Homebrew in PowerShell, set:
  Add-Content -Path $PROFILE.CurrentUserAllHosts -Value '$(/opt/homebrew/bin/brew shellenv) | Invoke-Expression'

==> Uninstalling packages with `sudo` (which may request your pass
com.microsoft.powershell-preview
==> Running installer for powershell@preview with `sudo` (which ma
installer: Package name is powershell
installer: Upgrading at base path /
installer: The upgrade was successful.
==> Purging files for version 7.6.0-preview.5 of Cask powershell@p
🍺  powershell@preview was successfully upgraded!

Environment data

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.6.0-preview.6
PSEdition                      Core
GitCommitId                    7.6.0-preview.6
OS                             macOS 26.2.0
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

https://formulae.brew.sh/cask/powershell@preview#default

powershell@preview (deprecated)

Disable date: 2026-09-01
Install command:

brew install --cask powershell@preview

Name: PowerShell

Command-line shell and scripting language

https://github.com/PowerShell/PowerShell

Cask JSON API: [/api/cask/powershell@preview.json](https://formulae.brew.sh/api/cask/powershell@preview.json)

Cask code: [powershell@preview.rb](https://github.com/Homebrew/homebrew-cask/blob/53544b53e116c49fa78bb18cfc58280c9f59e096/Casks/p/powershell@preview.rb) on GitHub

Current version: [7.6.0-preview.6](https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-arm64.pkg)

Requirements: macOS >= 10.15

https://formulae.brew.sh/cask/powershell#default

powershell (deprecated)

Disable date: 2026-09-01
Install command:

brew install --cask powershell

Name: PowerShell

Command-line shell and scripting language

https://github.com/PowerShell/PowerShell

Cask JSON API: [/api/cask/powershell.json](https://formulae.brew.sh/api/cask/powershell.json)

Cask code: [powershell.rb](https://github.com/Homebrew/homebrew-cask/blob/53544b53e116c49fa78bb18cfc58280c9f59e096/Casks/p/powershell.rb) on GitHub

Current version: [7.5.4](https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.pkg)

Requirements: macOS >= 10.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions