Windows
- Using Windows 10 and Later:
curl is included by default in Windows 10 and later versions.
- To verify, open Command Prompt and type
curl --version.
- Manual Installation:
- Download the
curl executable from the official curl website.
- Extract the files and place them in a desired directory (e.g.,
C:\\curl).
- Add the path to the
curl executable to your system's PATH environment variable.
macOS
- Using Pre-installed curl:
- macOS comes with
curl pre-installed.
- To check the version, open Terminal and type
curl --version.
- Installing/Updating via Homebrew:
- If Homebrew is not installed, install it from Homebrew's website.
- Open Terminal and type
brew install curl to install or brew upgrade curl to update curl.
Linux
- Ubuntu/Debian-Based Systems:
- Open Terminal.
- Update your package list:
sudo apt update
- Install
curl: sudo apt install curl
- Verify installation:
curl --version
- Fedora/CentOS/Red Hat:
- Open Terminal.
- For Fedora:
sudo dnf install curl
For CentOS/Red Hat: sudo yum install curl
- Verify installation:
curl --version