Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update cURL on windows?

Tags:

curl

I have cURL installed on windows OS along with git. Now I have to update the cURL version.

Following this link, I downloaded the cURL latest version and added to the environment variable of the system.

But still curl --version gives me the previous version installed.How can I make new version to work out?

like image 674
rohan sethi Avatar asked Sep 26 '17 10:09

rohan sethi


1 Answers

You can use where on windows to find which version is being used.

WHERE curl.exe

You could fully qualify the specific cURL version you want to invoke, or remove the wrong version from PATH.

Beware dumping everything in your PATH env variable - it's easier to set the path explicitly for the specific versions you want to use.

Try having a set_path.cmd file for each setup:

set PATH=[wherever_git_is];%PATH%

for when you want git and

set PATH=[other_curl];%PATH%

for when you want to use the other cURL.

like image 171
doctorlove Avatar answered Oct 19 '22 12:10

doctorlove