Install libdir-purge-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libdir-purge-perl
Description:
Purge directories to a given number of files
Dir::Purge implements functions to reduce the number of files in a directory according to a strategy. It currently provides one strategy: removal of files by age.
Homepage: https://metacpan.org/release/Dir-Purge
Version: 1.02-3
Section: universe/perl