How To Install r-cran-tzdb on Ubuntu 22.04
Introduction
In this tutorial we learn how to install r-cran-tzdb
on Ubuntu 22.04.
What is r-cran-tzdb
r-cran-tzdb is:
The package provides an up-to-date copy of the Internet Assigned Numbers Authority (IANA) Time Zone Database. It is updated periodically to reflect changes made by political bodies to time zone boundaries, UTC offsets, and daylight saving time rules. Additionally, this package provides a C++ interface for working with the ‘date’ library. ‘date’ provides comprehensive support for working with dates and date-times, which this package exposes to make it easier for other R packages to utilize. Headers are provided for calendar specific calculations, along with a limited interface for time zone manipulations.
There are three methods to install r-cran-tzdb
on Ubuntu 22.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-tzdb 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-tzdb
using apt-get
by running the following command:
sudo apt-get -y install r-cran-tzdb
Install r-cran-tzdb Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-tzdb
using apt
by running the following command:
sudo apt -y install r-cran-tzdb
Install r-cran-tzdb 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-tzdb
using aptitude
by running the following command:
sudo aptitude -y install r-cran-tzdb
How To Uninstall r-cran-tzdb on Ubuntu 22.04
To uninstall only the r-cran-tzdb
package we can use the following command:
sudo apt-get remove r-cran-tzdb
Uninstall r-cran-tzdb And Its Dependencies
To uninstall r-cran-tzdb
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove r-cran-tzdb
Remove r-cran-tzdb Configurations and Data
To remove r-cran-tzdb
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge r-cran-tzdb
Remove r-cran-tzdb configuration, data, and all of its dependencies
We can use the following command to remove r-cran-tzdb
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-tzdb
References
Summary
In this tutorial we learn how to install r-cran-tzdb
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.