4

curl is a command line tool for transferring data with URLs. It is installed on my system as version 7.51.0. According to the tool's homepage, its current version number is 7.54.0. I'd like to update my copy of this tool to the latest version.

According to the Releases and Downloads page of curl's website, the latest version can be installed on Mac OS X using Homebrew.

How can I use Homebrew to update my copy of curl to the latest version? Is updating the same as installing? If so, then the answer to my question is:

> brew install curl

But is there a different way to update an already existing program?

8

Simply no. Only Apple can update programs in /usr/bin etc.

However you can make your scripts find the program from Homebrew first. You do this by making your $PATH have /usr/local/bin (which is where Homebrew puts links to the executables) earlier in the $PATH than OS supplied programs.

  • I see. And how can I use Homebrew to update a program that I have previously installed using Homebrew? – Evan Aad Jun 2 '17 at 11:02
  • 3
    @EvanAad it's brew upgrade FORMULA. You can check it with brew help. – Mateusz Szlosek Jun 2 '17 at 11:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .