cURL is a versatile command-line tool supporting protocols like HTTP, HTTPS, and FTP, commonly used for data transfer, API testing, and automating web requests in Ubuntu environments.
On many Ubuntu systems, cURL may be preinstalled, but if absent, it can be installed quickly using apt. Alternatively, a snap package provides a maintained, containerized version, ensuring compatibility and stability.
Once installed, cURL enhances workflows by retrieving content, debugging servers, and interacting with APIs, making it indispensable for developers and system administrators.
Steps to install curl on Ubuntu:
- Open a terminal.
- Update the package list with apt.
$ sudo apt update
- Install cURL from the official repositories.
$ sudo apt install --assume-yes curl
If the installation fails, consider using snap as an alternative source.
- Verify the cURL installation.
$ curl --version curl 7.81.0 (x86_64-pc-linux-gnu) ...
The output displays the installed version and supported features.
- Optionally, install cURL using snap.
$ sudo snap install curl
snap provides another way to obtain cURL on systems that support snaps.
- Start using cURL to fetch data or test services.
$ curl "https://example.com"
cURL is now ready for use in command-line workflows.
This guide is tested on Ubuntu:
Version | Code Name |
---|---|
22.04 LTS | Jammy Jellyfish |
23.10 | Mantic Minotaur |
24.04 LTS | Noble Numbat |

Mohd Shakir Zakaria is a cloud architect with deep roots in software development and open-source advocacy. Certified in AWS, Red Hat, VMware, ITIL, and Linux, he specializes in designing and managing robust cloud and on-premises infrastructures.
Comment anonymously. Login not required.