How to Fix bash: termrec: command not found in Minimal Linux Distributions

The termrec utility is a classic terminal session recorder that captures terminal output, control codes, and shell interactions into lightweight, replayable ttyrec files. Minimal Linux server installations, cloud instances, and container images omit legacy terminal recording utilities by default, returning bash: termrec: command not found.

Install termrec via Native Package Repositories

Several Linux distributions maintain termrec directly in their universe or extra software archives:

  • Ubuntu and Debian:
    sudo apt update && sudo apt install -y termrec
  • Arch Linux (via AUR):
    yay -S termrec
  • Alpine Linux (via testing/community):
    sudo apk add termrec

Compile termrec from Source on RHEL, Fedora, or Rocky Linux

When binary packages are omitted from enterprise software channels, build the utility directly from source:

  1. Install essential build prerequisites:
    sudo dnf install -y gcc make git
  2. Clone the official repository:
    git clone https://github.com/vigneshwaranr/termrec.git && cd termrec
  3. Configure, compile, and install:
    make && sudo make install

Verify Execution and Modern asciinema Alternative

Verify that the binary is discoverable in your system PATH and record a test session:

  1. Confirm binary execution:
    which termrec && termrec --version
  2. Record a shell session to an output file:
    termrec session.ttyrec
  3. If your workflow requires modern web sharing and vector playback, consider installing the active modern standard:
    sudo apt install -y asciinema

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.