Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Mac » How to install and uninstall PowerShell on macOS via Homebrew
  • img 5be0c6cdb96d8
    Is BitLocker Enabled? How to view BitLocker Disk Encryption Status in Windows Windows
  • gfhj
    Debugging: How to debug a PowerShell script Windows
  • Directmemoryattack
    How to Protect Thunderbolt Ports in Windows Windows
  • DevOps GIT Docker Kubernetes
    Azure DevOps: Docker and Kubernetes Deployment with GitHub AWS/Azure/OpenShift
  • ChatGPT on Linux
    Set Up and Use ChatGPT in Linux Terminal Linux
  • image 23
    Copy Deployment Share between Servers without using linked Deployment Shares Windows
  • install git 1024x512 1
    How to install Git on macOS Version Control System
  • Windows Productivity Tips
    Windows Productivity Tips To Get The Most Out Of Your PC Windows

How to install and uninstall PowerShell on macOS via Homebrew

Posted on 20/03/202022/03/2024 Christian By Christian 4 Comments on How to install and uninstall PowerShell on macOS via Homebrew
install PowerShell

In this post, we shall discuss how to install and uninstall PowerShell on macOS via Homebrew. PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. Please see Package Manager for macOS: How to install Homebrew on macOS, How to install Zoom on macOS, How to check if homebrew is installed on macOS, and How to locate and edit the host file on macOS.

PowerShell runs on Windows, Linux, and macOS. PowerShell is supported on macOS 10.12 and higher. All packages are available on the GitHub releases page.

Homebrew is package manager for Macs which makes installing lots of different software like Git, Ruby, and Node simpler. Homebrew lets you avoid possible security problems associated with using the sudo command to install software like Node. The steps below are ways to install PowerShell on macOS.

To install PowerShell on macOS. The Homebrew package manager is utilized. To have the Homebrew package manager installed on your device, visit the following link. See this guide on how to upgrade PowerShell to the latest version on macOS.

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s operating system macOS as well as Linux.

Via Homebrew

Launch your iTerm (Terminal emulator for macOS). Run the below commands to install Powershell

brew cask install powershell
uninstall PowerShell

After the package is installed, run “pwsh” from a terminal.

macOS

However, Now, you can continue running some Command Prompt commands and PowerShell cmdlets as well on your macOS. See some examples below.

Now you can run PowerShell cmdlets right inside your macOS device

Remove PowerShell

To uninstall PowerShell from your device, run the following command below

brew cask uninstall powershell

Note: This is only applicable if you used the homebrew package manager to install PowerShell, otherwise you will have to uninstall PowerShell manually

I hope you found this blog post on How to install and uninstall PowerShell on macOS via Homebrew helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Mac Tags:microsoft, PowerShell

Post navigation

Previous Post: Package Manager for macOS: How to install Homebrew on macOS
Next Post: How to join a computer to the Domain

Related Posts

  • Screenshot 2021 03 29 at 01.56.17
    How to prevent VLC player from reverting to the native video size on Mac Mac
  • facebook v1
    Stop TeamViewer from starting Automatically Mac
  • How To Remove Takeprize50.life Redirect From Mac unboxhow
    Remove unwanted site redirects or pop-ups from Google Chrome Mac
  • Enable or Disable Siri
    How to enable Siri on Mac devices Mac
  • fba7f screenshot 2019 04 15 at 18.33.30
    File System Overview: How to decide on the right File System to use for your USB Linux
  • PowerShell 1
    How to upgrade PowerShell to the latest version on macOS via Homebrew Mac

More Related Articles

Screenshot 2021 03 29 at 01.56.17 How to prevent VLC player from reverting to the native video size on Mac Mac
facebook v1 Stop TeamViewer from starting Automatically Mac
How To Remove Takeprize50.life Redirect From Mac unboxhow Remove unwanted site redirects or pop-ups from Google Chrome Mac
Enable or Disable Siri How to enable Siri on Mac devices Mac
fba7f screenshot 2019 04 15 at 18.33.30 File System Overview: How to decide on the right File System to use for your USB Linux
PowerShell 1 How to upgrade PowerShell to the latest version on macOS via Homebrew Mac

Comments (4) on “How to install and uninstall PowerShell on macOS via Homebrew”

  1. Avatar photo Mohamed says:
    11/08/2021 at 5:06 PM

    brew cask install powershell
    this cause some problem, but brew install powershell worked
    in bigsur

    Log in to Reply
    1. chris Christian says:
      11/08/2021 at 8:11 PM

      Thank you for sharing the solution that worked for you!

      Log in to Reply
  2. Avatar photo thibault says:
    24/02/2023 at 11:18 AM

    Perfect. Worked for me. Thank you

    Log in to Reply
    1. chris Christian says:
      24/02/2023 at 12:20 PM

      You are welcome!

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • img 5be0c6cdb96d8
    Is BitLocker Enabled? How to view BitLocker Disk Encryption Status in Windows Windows
  • gfhj
    Debugging: How to debug a PowerShell script Windows
  • Directmemoryattack
    How to Protect Thunderbolt Ports in Windows Windows
  • DevOps GIT Docker Kubernetes
    Azure DevOps: Docker and Kubernetes Deployment with GitHub AWS/Azure/OpenShift
  • ChatGPT on Linux
    Set Up and Use ChatGPT in Linux Terminal Linux
  • image 23
    Copy Deployment Share between Servers without using linked Deployment Shares Windows
  • install git 1024x512 1
    How to install Git on macOS Version Control System
  • Windows Productivity Tips
    Windows Productivity Tips To Get The Most Out Of Your PC Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.