How to upgrade PowerShell on Mac


Upgrade PowerShell on Mac
Upgrade PowerShell on Mac
A new PowerShell stable release is available: v7.2.2 
Upgrade now, or check out the release page at:       
https://aka.ms/PowerShell-Release?tag=v7.2.2    

You might see information like above when a new version of PowerShell is available on Mac, in order to update it, you need to run the update command with brew the package manager that you must have used to install PowerShell,

% brew update powershell

==> Upgrading 1 outdated package:
powershell 7.2.1 -> 7.2.2
==> Upgrading powershell
==> Caveats
To use Homebrew in PowerShell, set:

All formula dependencies satisfied.
==> Uninstalling packages; your password may be necessary:
com.microsoft.powershell
Password:
Password:
==> Running installer for powershell; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is PowerShell - 7.2.2
installer: Installing at base path /
installer: The install was successful.
==> Purging files for version 7.2.1 of Cask powershell
🍺  powershell was successfully upgraded!
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.