Skip to content

How to make a package installed-by-request #4043

Answered by Bo98
nobrowser asked this question in Everyday usage
Discussion options

You must be logged in to vote

brew install will do this. If it is already installed, it will set it to installed on request.

A couple things about it to be aware:

  • If it's already installed and up-to-date, it will print a warning that it is "already installed", but it still will have updated the setting successfully. If this message is a problem you can add --quiet.
  • If it's already installed but not up-to-date, it will brew upgrade that formula too so that the latest version is installed. If this is a problem, you can do HOMEBREW_NO_INSTALL_UPGRADE=1 brew install instead.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nobrowser
Comment options

Comment options

You must be logged in to vote
1 reply
@nobrowser
Comment options

Answer selected by nobrowser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants