How to Install and Uninstall tmpreaper on Ubuntu 22.04

Updated: September 8, 2022

This package provides a program that can be used to clean out temporary-file directories. It recursively searches the directory, refusing to chdir() across symlinks, and removes files that haven’t been accessed in a user-specified amount of time. You can specify a set of files to protect from deletion with a shell pattern. It will not remove files owned by the process EUID that have the w' bit clear, unless you ask it to, much like rm -f’. `tmpreaper’ will not remove symlinks, sockets, fifos, or special files unless given a command line option enabling it to. In this tutorial, I will show you ways to install tmpreaper Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install tmpreaper on Ubuntu 22.04

Install tmpreaper Ubuntu 22.04

tmpreaper 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 tmpreaper using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to install tmpreaper on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install tmpreaper Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install tmpreaper

Install tmpreaper using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt install aptitude

After installing aptitude, you can now install tmpreaper, just following these steps:

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

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install tmpreaper Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude -y install tmpreaper

Uninstall tmpreaper on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a tmpreaper.

If you installed tmpreaper using APT or Aptitude, you could uninstall tmpreaper on Ubuntu by executing this command

sudo apt remove --auto-remove tmpreaper

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

sudo apt autoremove --purge tmpreaper

Summary

In this guide, I showed you ways to install tmpreaper on Ubuntu 22.04 and some ways to uninstall tmpreaper too. Please contact me if you require any assistance. I’d be delighted to respond.