How To Install curl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install curl
on Ubuntu 20.04.
What is curl
curl is:
curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.
curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos…), file transfer resume, proxy tunneling and a busload of other useful tricks. Task: server, cloud-image, ubuntu-budgie-desktop
Package: curl Architecture: amd64 Version: 7.68.0-1ubuntu2 Multi-Arch: foreign Priority: optional Section: web Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Alessandro Ghedini [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 401 Depends: libc6 (>= 2.17), libcurl4 (= 7.68.0-1ubuntu2), zlib1g (>= 1:1.1.4) Filename: pool/main/c/curl/curl_7.68.0-1ubuntu2_amd64.deb Size: 161312 MD5sum: 85c04a0e2aac4f444ecea5363911c5fe SHA1: 8054ecb8fd99d41c99d6ae9feda7040164d234c7 SHA256: a9704394e102063a2452c6d675285b915dad9f62d1d8b19233b6aa1faf6db44c Homepage: http://curl.haxx.se Description-en: command line tool for transferring data with URL syntax curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.
curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos…), file transfer resume, proxy tunneling and a busload of other useful tricks. Task: server, cloud-image, ubuntu-budgie-desktop
There are three methods to install curl
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install curl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install curl
using apt-get
by running the following command:
sudo apt-get -y install curl
Install curl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install curl
using apt
by running the following command:
sudo apt -y install curl
Install curl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install curl
using aptitude
by running the following command:
sudo aptitude -y install curl
How To Uninstall curl on Ubuntu 20.04
To uninstall only the curl
package we can use the following command:
sudo apt-get remove curl
Uninstall curl And Its Dependencies
To uninstall curl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove curl
Remove curl Configurations and Data
To remove curl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge curl
Remove curl configuration, data, and all of its dependencies
We can use the following command to remove curl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge curl
References
Summary
In this tutorial we learn how to install curl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.