# 使用 Homebrew, dnf, Nix, zypper 安装 tmpwatch

查看 tmpwatch 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:tmpwatch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tmpwatch
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install tmpwatch
```

  证据: Fedora Rawhide package metadata: tmpwatch from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#tmpwatch
```

  证据: nixpkgs package indexes: pkgs/by-name/tm/tmpwatch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install tmpwatch
```

  证据: openSUSE Tumbleweed package metadata: tmpwatch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:tmpwatch
- **软件包管理器:** Homebrew
- **版本:** 2.11
- **来源摘要:** Find and remove files not accessed in a specified time
- **主页:** <https://pagure.io/tmpwatch>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tmpwatch (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.11
## 项目历史与用法

tmpwatch is a small Red Hat-originated system administration utility for recursively deleting files that have not been accessed for a configured period. Its historical niche is simple, cron-friendly hygiene for temporary directories such as /tmp.

### 项目历史

The upstream man page carries Red Hat copyright years from 1997 through 2009 and lists Red Hat authors including Erik Troan, Preston Brown, Nalin Dahyabhai, and Miloslav Trmac. That places tmpwatch in the older Linux distribution tooling tradition: focused utilities shipped by distributions to solve recurring operational problems with minimal ceremony.

### 采用历史

Red Hat Enterprise Linux 6 technical notes still documented tmpwatch in 2011 as an updated package for RHEL 6, and Fedora package metadata describes the same temporary-directory cleanup role. In this batch input, the package is also present through Homebrew, dnf, Nix, and zypper names, showing that the utility survived outside its original Red Hat context as a portable admin tool.

### 使用方式

tmpwatch is normally run against one or more directories with an age threshold, commonly from cron or equivalent scheduled maintenance. Its safety details matter to administrators: the man page documents race-condition checks, avoiding filesystem crossings, ignoring symlinks in cleaned directories, and using atime by default with options for mtime and ctime.

### 为什么软件包爱好者会关心

For package-manager users, tmpwatch is interesting because it represents the pre-systemd era of distribution-specific housekeeping tools: tiny, scriptable, predictable, and packaged under the same name across several Unix-like ecosystems.

### 时间线

- 1997-2009: Upstream man page copyright range records Red Hat maintenance of tmpwatch.
- 2009: The upstream man page is dated 2009-10-15.
- 2011: Red Hat Enterprise Linux 6 technical notes documented a tmpwatch bug-fix update.

### Related projects

- cron and rm are referenced by the upstream man page as related commands in the cleanup workflow.
- Distribution package metadata positions tmpwatch as a filesystem and temporary-file maintenance tool.

### 来源

- <https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/6.2_technical_notes/tmpwatch>
- <https://packages.fedoraproject.org/pkgs/tmpwatch/tmpwatch/index.html>
- <https://pagure.io/tmpwatch/raw/master/f/tmpwatch.8>
- input.json source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - tmpwatch: normalized package name match | nixpkgs package indexes: pkgs/by-name/tm/tmpwatch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - tmpwatch - 2.11-31.fc45: normalized package name match | Fedora Rawhide package metadata: tmpwatch from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A utility for removing files based on when they were last accessed | https://pagure.io/tmpwatch
- zypper - tmpwatch - 2.11-7.9: normalized package name match | openSUSE Tumbleweed package metadata: tmpwatch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Watches file system activity, such as /tmp files | https://pagure.io/tmpwatch


## Combined YAML source

View the package source record on GitHub. [combined/tmpwatch.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tmpwatch.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
