Unable to install powershell on MacOS without root access (brew)
See original GitHub issueIt seems that at this moment root/admin access is needed in order to install powershell on MacoS.
This is an issue for two reasons:
- a shell should not need admin to be installed (i installed zsh, fish, tcsh, …) without needing admin
- prevents automation and CI usage, like on Travis
Steps to reproduce
Follow install instructions and do:
brew cask install powershell
Expected behavior
Succeeding installation without prompting for root/admin password
Actual behavior
==> Caveats
A OpenSSL-backed libcurl is required for custom handling of certificates.
This is rarely needed, but you can install it with
brew install curl --with-openssl
See https://github.com/PowerShell/PowerShell/issues/2211
==> Satisfying dependencies
All Formula dependencies satisfied.
==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.8/powershell-6.0.0-beta.8-osx.10.12-x64.pkg
Already downloaded: /Users/ssbarnea/Library/Caches/Homebrew/Cask/powershell--6.0.0-beta.8.pkg
==> Verifying checksum for Cask powershell
==> Uninstalling Cask powershell
==> Running uninstall process for powershell; your password may be necessary
==> Uninstalling packages:
==> Installing Cask powershell
==> Running installer for powershell; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Environment data
MacOS High Sierra (10.13)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Installing PowerShell on macOS
Install using Homebrew. Homebrew is the preferred package manager for macOS. Install PowerShell via Direct Download; Install from binary ...
Read more >Get PowerShell remoting working on macOS without installing ...
The PowerShell software needs to use OpenSSH libraries to communicate with remote hosts (e.g. Office 365) and there are some hardcoded library ...
Read more >Installation — Homebrew Documentation
Documentation for the missing package manager for macOS (or Linux).
Read more >Can I install Homebrew without sudo privileges?
I'd like to install Homebrew in a Mac environment where I don't have sudo or admin privileges. Is this possible? macos · sudo...
Read more >not able to install anything because of brew no such file or ...
Try uninstalling Homebrew and then re-installing solved issue for me. Uninstall Homebrew: /bin/bash -c "$(curl -fsSL https://raw.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is by design… Please use the tar.gz if you want to install without admin access.
We could build a formula if it was in our own repo. Would that work? I have a prototype in my personal repo: https://github.com/TravisEz13/Homebrew-PowerShell