Curl command not found

If you encounter the curl command not found on a Linux system, it means that the tool has not yet been installed. The curl Linux command can use various network protocols to download and upload data on Linux. In this tutorial, you will see how to install the curl command on all major Linux distributions.

In this tutorial you will learn:

  • How to install curl on all major Linux distros
  • How to check if curl is currently installed
Curl command not found
Curl command not found
Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Any Linux distro
Software curl
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to Install Curl on All Major Linux Distributions




The curl command not found error will be resolved after you install the curl utility on your system. Then, you will be able to use the curl command without encountering this error.

You can use the appropriate command below to install curl with your system’s package manager.

To install curl on Ubuntu, Debian, and Linux Mint:

$ sudo apt update
$ sudo apt install curl

To install curl on Fedora, CentOS, AlmaLinux, Rocky Linux, and Red Hat:

$ sudo dnf install curl

To install curl on Arch Linux and Manjaro:

$ sudo pacman -Sy curl

To install curl on OpenSUSE Linux:

$ sudo zypper install curl

To install curl on Gentoo Linux:

$ sudo emerge curl

Verify curl installation

You can verify that curl is installed by checking the current version:

$ curl --version

You can also verify package installation with the following commands:

On Debian based distros:

$ sudo dpkg -l | grep curl

On Red Hat or Fedora based distros:

$ sudo rpm -qa | grep curl

On OpenSUSE:

$ sudo zypper se curl

On Arch Linux and Manjaro:

$ sudo pacman -Qi curl


Closing Thoughts

In this tutorial, we saw how to resolve the curl command not found error on a Linux system. The remedy for this error is to simply install the curl package. We also learned how to verify that curl was installed on any major Linux distribution. Now that you have curl up and running, check out our tutorial on curl file download to see how to use the curl command to download files and perform similar tasks.