How To Install r-cran-curl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install r-cran-curl on Ubuntu 18.04.
What is r-cran-curl
r-cran-curl is:
The curl() and curl_download() functions provide highly configurable drop- in replacements for base url() and download.file() with better performance, support for encryption (https, ftps), gzip compression, authentication, and other libcurl goodies. The core of the package implements a framework for performing fully customized requests where data can be processed either in memory, on disk, or streaming via the callback or connection interfaces. Some knowledge of libcurl is recommended; for a more-user-friendly web client see the ‘httr’ package which builds on this package with http specific tools and logic.
There are three methods to install r-cran-curl on Ubuntu 18.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 r-cran-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 r-cran-curl using apt-get by running the following command:
sudo apt-get -y install r-cran-curl
Install r-cran-curl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install r-cran-curl using apt by running the following command:
sudo apt -y install r-cran-curl
Install r-cran-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 r-cran-curl using aptitude by running the following command:
sudo aptitude -y install r-cran-curl
How To Uninstall r-cran-curl on Ubuntu 18.04
To uninstall only the r-cran-curl package we can use the following command:
sudo apt-get remove r-cran-curl
Uninstall r-cran-curl And Its Dependencies
To uninstall r-cran-curl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove r-cran-curl
Remove r-cran-curl Configurations and Data
To remove r-cran-curl configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge r-cran-curl
Remove r-cran-curl configuration, data, and all of its dependencies
We can use the following command to remove r-cran-curl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-curl
References
Summary
In this tutorial we learn how to install r-cran-curl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.