l2t

How to install curl on Mac or Linux (Ubuntu) or Windows

Asked: a month ago

Installing Curl on Ubuntu or Linux

# check to see if you have curl installed already
# if you do have curl then skip all other steps
curl --version

# if you do not have curl installed run following commands
# update your ubuntu or linux box
sudo apt update

# install curl
sudo apt install curl

Installing Curl on Mac

# check to see if you have curl installed already
# if you do have curl then skip all other steps
curl --version

# check to see if you have brew installed already
brew -v

# if you donot have brew installed install brew first
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

# once brew is installed let's install curl
brew install curl

Installing Curl on Windows

Go to this url: https://curl.se/dlwiz/?type=bin and select your windows operating system and download curl executable file for windows. Once dowloaded extract the zip file and go to src folder and find executable file.

Now, copy your executable file and place inside this directory C:\Users{your_user}\programs>. Now open command prompt and change directory to C:\Users{your_user}\programs>.

Once you are there run following command to make sure curl is installed.

curl --version 

If you have any trouble watch this video: https://www.youtube.com/watch?v=4QNWUbrLpCk&ab_channel=DavidWilliams

Viewed: 94 times
Liked: 1 times