How to Uninstall and Install time on Ubuntu 22.04

Updated: October 7, 2022

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. I will show you how to install time on Ubuntu 22.04 in this guide.

Prerequisites

  • Operating system: time needs Ubuntu 22.04 to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install time on Ubuntu 22.04

Install time Ubuntu 22.04

time is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install time using APT

This is a popular method for installing any Ubuntu packages because it is simple to understand, even if you are a Linux beginner. Following these steps to install time on your Ubuntu.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install time Ubuntu by executing this command in the terminal.

sudo apt install time

Install time using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt-get install aptitude

After that, you can now install time, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install time Ubuntu by executing this command in the terminal.

sudo aptitude install time

Uninstall time on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a time, can be easily uninstalled by anyone.

This command can be used to uninstall time from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove time

If you want to uninstall time and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge time

Ending

In this tutorial, I showed you ways to install time on Ubuntu 22.04 and some ways to uninstall time too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.