How To Install tmpwatch.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install tmpwatch.x86_64 on Amazon Linux 2.
What is tmpwatch.x86_64
The tmpwatch utility recursively searches through specified directories and removes files which have not been accessed in a specified period of time. Tmpwatch is normally used to clean up directories which are used for temporarily holding files (for example, /tmp). Tmpwatch ignores symlinks, won’t switch filesystems and only removes empty directories and regular files.
We can use yum to install tmpwatch.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install tmpwatch.x86_64.
Install tmpwatch.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install tmpwatch.x86_64 using yum by running the following command:
sudo yum -y install tmpwatch.x86_64
How To Uninstall tmpwatch.x86_64 on Amazon Linux 2
To uninstall only the tmpwatch.x86_64 package we can use the following command:
sudo yum remove tmpwatch.x86_64
tmpwatch.x86_64 Package Contents on Amazon Linux 2
/usr/bin/tmpwatch
/usr/sbin/tmpwatch
/usr/share/doc/tmpwatch-2.11
/usr/share/doc/tmpwatch-2.11/AUTHORS
/usr/share/doc/tmpwatch-2.11/COPYING
/usr/share/doc/tmpwatch-2.11/ChangeLog
/usr/share/doc/tmpwatch-2.11/NEWS
/usr/share/doc/tmpwatch-2.11/README
/usr/share/man/man8/tmpwatch.8.gz
References
Summary
In this tutorial we learn how to install tmpwatch.x86_64 on Amazon Linux 2 using yum.