# 使用 Homebrew, apk, apt, MacPorts, Nix, pacman 安装 when

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

## 安装

```sh
sudo av install brew:when
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install when
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install when
```

  证据: MacPorts ports tree: sysutils/when/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add when
```

  证据: Alpine Linux edge package indexes: when from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install when
```

  证据: Debian stable package indexes: when from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#when
```

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

- pacman (92%):

```sh
sudo pacman -S when
```

  证据: Arch Linux sync databases: when from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:when
- **软件包管理器:** Homebrew
- **版本:** 1.1.45
- **来源摘要:** Tiny personal calendar
- **主页:** <https://www.lightandmatter.com/when/when.html>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- when (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

When is Ben Crowell's minimal personal calendar program for Unix users who prefer text files and terminal commands over larger personal-information-manager applications. The official page describes it as extremely simple, dependency-free beyond Perl, and editable in a favorite text editor.

### 项目历史

The reproduced man page and source identify Ben Crowell as the author and give a copyright range beginning in 2003. The page's included man page is for When 1.1.46 dated 21 December 2011, while the Bitbucket repository now carries the source history and tags.

Bitbucket repository metadata shows the current public repository was created in January 2023, but tags exposed through the Bitbucket API include version 1.1.30 in January 2013 and later 1.1.39 through 1.1.45 releases from 2020 to 2022. The project therefore predates its current hosting location.

### 采用历史

When's official page documents packaging across traditional Unix-like systems, including Debian and Ubuntu, Gentoo, FreeBSD, and Slackware-family packaging. That adoption pattern fits the tool's design: a small Perl script with no library dependencies is easy for distributions and ports trees to carry.

### 使用方式

The basic workflow is to run when, let it create initial setup information, edit the plain-text calendar with when e, and then run when to print upcoming items. The default report covers the next two weeks, while commands can show weekly, monthly, or yearly ranges, wall-calendar grids, the current date, or modified Julian days.

Calendar entries are simple text lines such as a date followed by a comma and description. The program also supports recurring date expressions, language handling, UTF-8 input, pager and terminal styling options, and a prefilter mechanism for splitting larger calendars through tools such as m4.

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

When is package-nerd significant as a small, inspectable Unix productivity tool: it stores user data in text, delegates editing to the user's editor, and avoids library dependencies. It is the kind of program that survives in package archives because it is easy to understand, easy to patch, and compatible with old-school shell workflows.

### 时间线

- 2003: The copyright range in the official man page and source begins.
- 2011-12-21: The official page reproduces the When 1.1.46 man page dated this day.
- 2013-01-10: Bitbucket tag metadata records version 1.1.30.
- 2020-2022: Bitbucket tag metadata records versions 1.1.39 through 1.1.45.
- 2023-01-25: The current Bitbucket repository metadata records repository creation.

### Related projects

- Traditional Unix calendar/reminder tools, plain-text personal information managers, and editor-centered workflows are the closest relatives.
- iCalendar and vCalendar are mentioned by the official page as formats for possible external converters rather than native storage formats.

### 来源

- <https://api.bitbucket.org/2.0/repositories/ben-crowell/when>
- <https://bitbucket.org/ben-crowell/when>
- <https://www.lightandmatter.com/personal/>
- <https://www.lightandmatter.com/when/when.html>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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

- Unix: ~/.when/preferences, ~/.when/calendar
## 其他软件包管理器记录

- Debian apt - when - 1.1.45-1: normalized package name match | Debian stable package indexes: when from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tiny personal calendar | https://www.lightandmatter.com/when/when.html
- Nix - when: normalized package name match | nixpkgs package indexes: pkgs/by-name/wh/when/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - when - 1.1.45-1: normalized package name match | Ubuntu 24.04 LTS package indexes: when from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tiny personal calendar | https://www.lightandmatter.com/when/when.html
- apk - when - 1.1.45-r1: normalized package name match | Alpine Linux edge package indexes: when from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely simple personal calendar program | https://www.lightandmatter.com/when/when.html
- apk - when-doc - 1.1.45-r1: normalized package name match | Alpine Linux edge package indexes: when-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely simple personal calendar program (documentation) | https://www.lightandmatter.com/when/when.html
- pacman - when - 1.1.45-2: normalized package name match | Arch Linux sync databases: when from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A simple commandline personal calendar program | http://www.lightandmatter.com/when/when.html
- MacPorts - when: normalized package name match | MacPorts ports tree: sysutils/when/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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