How To Install And Use Curl On Debian 10
This guide explains how to install and use the curl command on Debian 10, Buster.
If you are trying to download a file using curl and getting an error message saying curl command not found it simply means that the curl package is not installed on your Debian System.
Curl is a command-line utility for transferring data from or to a remote server. It allows you to download or upload data using HTTP, HTTPS, SCP , SFTP , and FTP protocols.
Installing Curl on Debian
Curl package is included in the default Debian 10 repositories, to install it run the following command:
To verify that curl has been installed, type curl in your terminal, and press Enter:
The command will print the following output:
That’s it! You have successfully installed curl on your Debian machine, and you can start using it.
When used without any option, curl prints the source code of the URL specified as an argument to the standard output:
To download a file with curl, use either the -o or -O flags.
The lowercase -o option allows you to specify the name of the saved file:
Uppercase -O saves the file with its original filename:
Another useful feature of Curl is its ability to display the HTTP headers of a given URL:
With Curl you can also download files from FTP servers that are password protected:
Curl is a versatile tool that allows you to send and receive data over the network. Installing Curl on Debian is a pretty simple task.