How to install cURL on macOS using Homebrew
This post provides a step-by-step guide with a list of commands on how to install cURL on macOS using Homebrew.
This post provides a step-by-step guide with a list of commands on how to install cURL on macOS using Homebrew. cURL is a command-line tool for getting or sending files using URL syntax.
What is cURL?
“cURL is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction. cURL supports HTTPS and performs SSL certificate verification by default when a secure protocol is specified such as HTTPS. When cURL connects to a remote server via HTTPS, it will first obtain the remote server certificate and check against its CA certificate store the validity of the remote server to ensure the remote server is the one it claims to be. Some cURL packages have bundled with CA certificate store file.” ~ Wikipedia
What is Homebrew?
Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS operating system. It is known as the missing package manager for macOS.
The following is the single command required to install cURL on macOS using Homebrew.
$ brew install curl
This section provides a quick set of commands on how to install cURL on macOS using Homebrew. It is assumed that Homebrew is already installed. If not, please follow this link.
$ brew update # Fetch latest version of homebrew and formula. $ brew search curl # Searches all known formulae for a partial or exact match. $ brew info curl # Displays information about the given formulae. $ brew install curl # Install the given formulae. $ brew cleanup # Remove any older versions from the cellar.
Congratulations! You have successfully installed cURL on macOS making use of Homebrew. Follow me on any of the different social media platforms and feel free to leave comments.