# Install ttyrec with Homebrew, apt, MacPorts

Terminal interaction recorder and player. Version 1.0.8 via Homebrew; verified 2026-07-18. Also installable with debian: sudo apt install ttyrec.

## Install

```sh
sudo av install brew:ttyrec
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ttyrec
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ttyrec
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ttyrec
```

  Evidence: Debian stable package indexes: ttyrec from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Package facts

- **Package key:** brew:ttyrec
- **Package manager:** Homebrew
- **Version:** 1.0.8
- **Source summary:** Terminal interaction recorder and player
- **Homepage:** <http://0xcc.net/ttyrec/>
- **Last updated:** 2026-07-18T21:12:51-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- ttyplay (alias)
- ttyrec (alias)
- ttytime (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.0.8
## Project history and usage

ttyrec is a tty recorder and playback tool for terminal sessions. The official page says recorded data can be replayed with `ttyplay`, and describes ttyrec as derived from the Unix `script` command with added timing information at microsecond accuracy.

### Project history

The official 0xcc page records ttyrec 1.0 as released on 2000-12-27, calling it the first version. The same page was last modified in 2006 and lists ttyrec 1.0.8 as the 2006-06-11 release.

ttyrec's model was deliberately small: record terminal bytes plus timing, then play them back. The page says it can record programs running on a tty such as Emacs in terminal mode, vi, lynx, or arbitrary tty programs.

### Adoption history

The official page links a tarball, RPM packages, and CVS, and the supplied package facts show continued packaging in Homebrew, Debian, MacPorts, and Ubuntu.

The project also seeded a small ecosystem around terminal recording. The official links list IPBT, TTYPLAYER, Term::TtyRec, x11rec, and related experiments; ttygif later used ttyrec files as its input format.

### How it is used

The basic documented workflow is `ttyrec` to record an interactive shell, `ttyrec -e command` to record a specific command, and `ttyplay ttyrecord` to replay the result. Playback can be sped up, slowed down, reset to normal speed, or watched in real time with `ttyplay -p`.

The official page also documents `ttytime` for measuring recorded data duration, gzip/gunzip handling for large recordings, a uuencode-based file-transfer option, and an inetd-based `ttyplay` server for serving recordings over telnet.

### Why package nerds care

ttyrec is historically significant because it is one of the compact ancestors of terminal demo tooling: before browser terminals and asciinema-style casts, it gave Unix users a packageable format for recording and replaying terminal work.

For package maintainers, it remains a small C utility with multiple executables (`ttyrec`, `ttyplay`, and `ttytime`) and a long tail of dependent or adjacent tools, especially converters and web players.

### Timeline

- 2000: ttyrec 1.0 released as the first version.
- 2003: TTYPLAYER added to the official links.
- 2005: IPBT added to the official links.
- 2006: ttyrec 1.0.8 released with a playback time-drift reduction hack.

### Related projects

- The official page lists IPBT, TTYPLAYER, Term::TtyRec, x11rec, and chatty as related links.
- ttygif is a later converter that uses ttyrec recordings as input.

### Sources

- <http://0xcc.net/ttyrec>
- source_facts.executables
- source_facts.package-manager


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- Debian apt - ttyrec - 1.1.7.1-1: normalized package name match | Debian stable package indexes: ttyrec from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Terminal interaction recorder and player (for tty) | https://github.com/ovh/ovh-ttyrec
- Ubuntu apt - ttyrec - 1.0.8-5.1: normalized package name match | Ubuntu 24.04 LTS package indexes: ttyrec from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Terminal interaction recorder and player (for tty)
- MacPorts - ttyrec: normalized package name match | MacPorts ports tree: sysutils/ttyrec/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/ttyrec.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ttyrec.yml)


## Sources

- 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
