How To Install time on Kali Linux
Introduction
In this tutorial we learn how to install time on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install time using apt-get by running the following command:
sudo apt-get -y install timeInstall time Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install time using apt by running the following command:
sudo apt -y install timeInstall time Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install time using aptitude by running the following command:
sudo aptitude -y install timeHow To Uninstall time on Kali Linux
To uninstall only the time package we can use the following command:
sudo apt-get remove timeUninstall time And Its Dependencies
To uninstall time and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove timeRemove time Configurations and Data
To remove time configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge timeRemove 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 timeDependencies
time have the following dependencies:
References
Summary
In this tutorial we learn how to install time package on Kali Linux using different package management tools: apt, apt-get and aptitude.