How to update cURL on OSX El Capitan?

Viewed 47498

I'm new using Mac and I'd like to upgrade the available cURL-7.43.0 to the last version cURL-7.47.1? I'm looking at some pages, but they say to avoid upgrading the originals on OSX. Any help please? Thanks

2 Answers

I had this issue as well with OSx locating curl at /usr/bin. If you install curl with brew install curl and then do brew info curl it will tell you the following near the bottom of the post-op output:

If you need to have this software first in your PATH run:

echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile

After running that command to update ~/.bash_profile you need to source it by executing . ~/.bash_profile

Related