Automic VaultAutomic Vault

brew

Install tmpreaper with Homebrew, apt, MacPorts

Clean up files in directories based on their age. Version 1.6.18 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install tmpreaper

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install tmpreaper

MacPorts ports tree · sysutils/tmpreaper/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install tmpreaper

Debian stable package indexes · tmpreaper · source: deb.debian.org

overview

Package summary

Clean up files in directories based on their age

Commands and aliases

  • tmpreaper

history

Project history and usage

tmpreaper is a long-lived Debian system-maintenance utility for removing old files from temporary directories based on access, modification, or change time.

Project history

The Debian manpage describes tmpreaper as a tool that recursively removes files and empty directories that have not been accessed for a specified period, especially in temporary holding areas such as /tmp. It emphasizes security behavior: avoiding symlink traversal, avoiding chdir(".."), not switching file systems, and stopping after a default runtime limit to reduce race-condition exposure.

The manpage names Karl M. Hegbloom as author, says tmpreaper is mostly based on tmpwatch 1.2/1.4 by Erik Troan, and lists Paul Slootman as the Debian maintainer. The Debian changelog shows active maintenance going back to the late 1990s and continuing through the 2025 1.6.18 release.

Adoption history

tmpreaper is historically rooted in Debian administration rather than in a GitHub-first CLI culture. Debian's package page places it in the admin section and documents the daily run configured through /etc/tmpreaper.conf.

The supplied source facts show availability through Homebrew, Debian, Ubuntu, and MacPorts. That spread reflects its appeal to users who want an established temp-file cleanup tool on both Linux distributions and macOS package ecosystems.

How it is used

System administrators use tmpreaper to clean directories such as /tmp with explicit age thresholds and protect patterns. The manpage documents dry-run behavior, verbose output, shell-command-style reporting of deletions, ctime and mtime modes, symlink handling, runtime limits, and protect patterns.

For package-focused users, tmpreaper is the classic installable answer to a recurring housekeeping problem: clean old temporary files without writing an ad hoc find command for every host, while retaining options shaped by multi-user Unix security concerns.

Why package nerds care

tmpreaper is significant because it embodies the older Debian package model: a small C utility, a manpage, a conffile, cron integration, and decades of changelog-driven maintenance. It is not trendy, but it is exactly the kind of durable system utility package nerds notice.

Its history is also a reminder that temp cleanup is security-sensitive. The changelog records fixes for directory traversal, bind-mount/race-condition issues, systemd PrivateTmp protection, default ignore patterns, and reproducible-build concerns.

Timeline

  • 1998: Debian changelog entries show tmpreaper 1.4.x maintained by Karl M. Hegbloom.
  • 2001: Version 1.5.0 added autoconf support and portability work for Solaris and NetBSD.
  • 2002: Version 1.6.0 added ctime handling for Samba-share scenarios.
  • 2003: Version 1.6.1 made cron execution opt-in through /etc/tmpreaper.conf and added runtime limiting.
  • 2019: Version 1.6.14 fixed CVE-2019-3461-related bind-mount race-condition behavior.
  • 2025: Version 1.6.18 was accepted into Debian unstable and migrated to testing.

Related projects

  • tmpwatch is the older cleanup utility named by the tmpreaper manpage as the basis for tmpreaper.
  • Debian cron and /etc/tmpreaper.conf are the package integration points documented by Debian.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Linux
/etc/tmpreaper.conf

executables

Installed executables

CommandKindExposureNote
tmpreapercliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.6.18
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://packages.debian.org/sid/tmpreaper

install metadata

Package metadata

Package keybrew:tmpreaper
Version1.6.18
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/tmpreaper
Homepagehttps://packages.debian.org/sid/tmpreaper
Upstream docshttps://manpages.debian.org/tmpreaper
LicenseGPL-2.0-only
Source archivehttps://ftp.debian.org/debian/pool/main/t/tmpreaper/tmpreaper_1.6.18.tar.xz
Build dependenciesautoconf, automake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametmpreaper
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

tmpreaper 1.6.18

cleans up files in directories based on their age

sudo apt install tmpreaper
  • Section: admin
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Tmpreaper
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tmpreaper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

tmpreaper 1.6.17+nmu1build1

cleans up files in directories based on their age

sudo apt install tmpreaper
  • Section: universe/admin
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Tmpreaper
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tmpreaper from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

tmpreaper

sudo port install tmpreaper
  • normalized package name match
  • Matched by: Tmpreaper
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/tmpreaper/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment