How to Install Powershell via the Brew

powershell brew

First of all, we need to search for a Powershell package via the Homebrew:

Romans-MacBook-Pro-2:~ roman$ brew search --casks powershell
==> Casks
powershell                 powershell-preview         powershell6

We see powershell. Now we are sure what we need to install:

Romans-MacBook-Pro-2:~ roman$ brew cask install powershell
Updating Homebrew...
==> Downloading
Already downloaded: /Users/roman/Library/Caches/Homebrew/downloads/c32cbc0f10a476d5554dedcdbb4d24f1f65ac746ae97055317dc89b98f4b8c85--powershell-7.1.0-osx-x64.pkg
==> Verifying SHA-256 checksum for Cask 'powershell'.
==> Installing Cask powershell
==> Running installer for powershell; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are i
installer: Package name is PowerShell - 7.1.0
installer: Installing at base path /
installer: The install was successful.
🍺  powershell was successfully installed!

To keep our software up to date, don’t forget to run:

brew update
brew upgrade powershell --cask
comments powered by Disqus