How To Install libposix-strftime-compiler-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libposix-strftime-compiler-perl on Ubuntu 18.04.
What is libposix-strftime-compiler-perl
libposix-strftime-compiler-perl is:
POSIX::strftime::Compiler provides a GNU C library compatible strftime(3), which is not affected by the system locale. This is useful when you want to write loggers, servers and portable applications that generate the same result strings on any locale. Technically, POSIX::strftime::Compiler wraps POSIX::strftime and converts some format characters to perl code.
There are three methods to install libposix-strftime-compiler-perl 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 libposix-strftime-compiler-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 libposix-strftime-compiler-perl using apt-get by running the following command:
sudo apt-get -y install libposix-strftime-compiler-perl
Install libposix-strftime-compiler-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libposix-strftime-compiler-perl using apt by running the following command:
sudo apt -y install libposix-strftime-compiler-perl
Install libposix-strftime-compiler-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 libposix-strftime-compiler-perl using aptitude by running the following command:
sudo aptitude -y install libposix-strftime-compiler-perl
How To Uninstall libposix-strftime-compiler-perl on Ubuntu 18.04
To uninstall only the libposix-strftime-compiler-perl package we can use the following command:
sudo apt-get remove libposix-strftime-compiler-perl
Uninstall libposix-strftime-compiler-perl And Its Dependencies
To uninstall libposix-strftime-compiler-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libposix-strftime-compiler-perl
Remove libposix-strftime-compiler-perl Configurations and Data
To remove libposix-strftime-compiler-perl configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libposix-strftime-compiler-perl
Remove libposix-strftime-compiler-perl configuration, data, and all of its dependencies
We can use the following command to remove libposix-strftime-compiler-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libposix-strftime-compiler-perl
References
Summary
In this tutorial we learn how to install libposix-strftime-compiler-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.