


Once the cache has updated we can install curl using the apt install curl command: $ sudo apt install curl Often this will resolve any issues such as seeing a “ unable to locate package curl” message. Before we do though it’s advisable to update the systems package cache first: $ sudo apt update The good news is that since curl is included in Ubuntu’s (or generally most distributions) main repository, which means it’s very easy to install. If you see a message such as the one shown below then curl isn’t currently installed on your system: $ bash: curl: command not found

To use cURL, you can simply type curl at a bash shell prompt. This article shows you how to install curl on Ubuntu systems if it isn’t already present, and gives some simple examples to show you how to use curl and confirm that it is working as expected. Quite often it can be found on most Linux distributions, or if not it is straight forward to install it. Curl is often used as a way to download files from the internet, although it is capable of much more. If you are a Linux user there is a good chance you have come across it at some point. Curl has been around for quite a while – it was first released in 1996 (though back then it was called httpget).ĬURL is a command-line tool for getting or sending data including files using URL syntax. CURL (Client URL Library) is a command-line tool for transferring data using various network protocols, typically HTTP/s, though it supports many more including ftp, scp and smb.
