How To Install time on Debian 10
Introduction
In this tutorial we learn how to install time
on Debian 10.
What is time
time is:
The ’time’ command runs another program, then displays information about the resources used by that program, collected by the system while the program was running. You can select which information is reported and the format in which it is shown, or have ’time’ save the information in a file instead of display it on the screen.
The resources that ’time’ can report on fall into the general categories of time, memory, I/O, and IPC calls.
The GNU version can format the output in arbitrary ways by using a printf-style format string to include various resource measurements.
There are three methods to install time
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install time Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install time
using apt-get
by running the following command:
sudo apt-get -y install time
Install time Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install time
using apt
by running the following command:
sudo apt -y install time
Install time 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install time
using aptitude
by running the following command:
sudo aptitude -y install time
How To Uninstall time on Debian 10
To uninstall only the time
package we can use the following command:
sudo apt-get remove time
Uninstall time And Its Dependencies
To uninstall time
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove time
Remove time Configurations and Data
To remove time
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge time
Remove time configuration, data, and all of its dependencies
We can use the following command to remove time
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge time
Dependencies
time have the following dependencies:
References
Summary
In this tutorial we learn how to install time
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.