How To Install libdatetime-format-oracle-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libdatetime-format-oracle-perl on Ubuntu 20.04.
What is libdatetime-format-oracle-perl
libdatetime-format-oracle-perl is:
DateTime::Format::Oracle may be used to convert Oracle date and timestamp values into DateTime objects. It also can take a DateTime object and produce a date string matching the NLS_DATE_FORMAT.
Oracle has flexible date formatting via its NLS_DATE_FORMAT session variable. Date values will be returned from Oracle according to the current value of that variable. Date values going into Oracle must also match the current setting of NLS_DATE_FORMAT.
Timestamp values will match either the NLS_TIMESTAMP_FORMAT or NLS_TIMESTAMP_TZ_FORMAT session variables.
This module keeps track of these Oracle session variable values by examining environment variables of the same name. Each time one of Oracle’s formatting session variables is updated, the %ENV hash must also be updated.
There are three methods to install libdatetime-format-oracle-perl 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 libdatetime-format-oracle-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libdatetime-format-oracle-perl using apt-get by running the following command:
sudo apt-get -y install libdatetime-format-oracle-perl
Install libdatetime-format-oracle-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libdatetime-format-oracle-perl using apt by running the following command:
sudo apt -y install libdatetime-format-oracle-perl
Install libdatetime-format-oracle-perl 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 libdatetime-format-oracle-perl using aptitude by running the following command:
sudo aptitude -y install libdatetime-format-oracle-perl
How To Uninstall libdatetime-format-oracle-perl on Ubuntu 20.04
To uninstall only the libdatetime-format-oracle-perl package we can use the following command:
sudo apt-get remove libdatetime-format-oracle-perl
Uninstall libdatetime-format-oracle-perl And Its Dependencies
To uninstall libdatetime-format-oracle-perl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libdatetime-format-oracle-perl
Remove libdatetime-format-oracle-perl Configurations and Data
To remove libdatetime-format-oracle-perl configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libdatetime-format-oracle-perl
Remove libdatetime-format-oracle-perl configuration, data, and all of its dependencies
We can use the following command to remove libdatetime-format-oracle-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdatetime-format-oracle-perl
References
Summary
In this tutorial we learn how to install libdatetime-format-oracle-perl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.