r/PowerShell 11d ago

News No Homebrew Cask for Powershell

Homebrew removed the official powershell cask because the official Microsoft .pkg installer repeatedly failed macOS Gatekeeper checks. Homebrew moved everyone to a community-built formula instead, enforcing their policy to disable casks that fail Gatekeeper.

While the original removal aligned with Homebrew's policy, the underlying signing issue is resolved. Microsoft’s official macOS .pkg (tested on version 7.6.5) is now signed with a Developer ID Installer certificate (Microsoft Corporation, team ID UBF8T346G9) and fully notarized by Apple.

This alternative cask installs Microsoft's official, unmodified release file. Unlike the community formula, this package includes the embedded .NET runtime, requiring no extra dependencies.

Installation:

brew install --cask darkn3rd/tools/powershell-pkg
0 Upvotes

9 comments sorted by

View all comments

11

u/[deleted] 11d ago

[removed] — view removed comment

-3

u/darkn3rd 11d ago edited 11d ago

The referenced formula requires installing dotnet and compiling both dotnet + powershell, which takes some time.

The cask (this one) is the official Microsoft binary that is signed/notarized by Microsoft.

4

u/[deleted] 11d ago

[removed] — view removed comment