Skip to content

Distribute OSX release as a Homebrew formula #1779

Closed

Description

As a devops type nerd, I want to be able to install and update PowerShell/OSX via the CLI, and also with my preferred packaging tool, namely Homebrew (http://brew.sh).

Yes, the the OSX native installer packages (.pkg) can be installed via CLI (with the installer command), but it requires sudo. AFAICT, PowerShell is installed to /usr/local/bin and does not require sudo at all otherwise.

Homebrew is basically the de-facto CLI package manager on OSX like choco.exe is on Windows. It does not require sudo for packages to be installed.

Instructions to create a formula: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Formula-Cookbook.md

Activity

  1. halr9000 commented on Aug 12, 2016

    @halr9000
    ContributorAuthor

    Haha, I see in /docs/building/osx.md that it has many references to Homebrew and uses it as part of the prerequisite installs, so maybe this issue is already done--but can't be turned on until the PowerShell/PowerShell repo is public?

  2. niemyjski commented on Aug 18, 2016

    @niemyjski

    I'd also love to install via brew! I'm going to hold off installing until I can install via brew (so easy to update brew packages)!

  3. analogrelay commented on Aug 18, 2016

    @analogrelay

    This would be awesome. I'd jump in to build the formula but I don't want to stomp on a possible official homebrew tap. I hope we can get this soon! I want brew install powershell :)

  4. andyleejordan commented on Aug 18, 2016

    @andyleejordan
    Member

    Keep in mind that we probably need https://github.com/dotnet/cli/issues/533 too (at least to do it right! in the short term we can install dotnet locally to build).

  5. added this to the milestone on Sep 29, 2016
  6. luzlab commented on Apr 28, 2017

    @luzlab

    Currently, brew cask install powershell works. I haven't done much testing, but it just downloads the .pkg and runs it.

  7. joeyaiello commented on May 22, 2017

    @joeyaiello
    Contributor

    Given this has the most 👍's of any issue, I'm going to fix our install instructions today to make it more obvious how to do this.

  8. modified the milestones: , on May 24, 2017
  9. halr9000 commented on Jun 29, 2017

    @halr9000
    ContributorAuthor

    Joey Aiello (@joeyaiello) I just tried a brew cask reinstall powershell and it gave me v6.0.0-beta.1. Something is not properly automated. I would dig in but no time to do so ATM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

OS-macOSResolution-FixedWG-Maintainers-Build

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions