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:
- Install essential build prerequisites:
sudo dnf install -y gcc make git - Clone the official repository:
git clone https://github.com/vigneshwaranr/termrec.git && cd termrec - 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:
- Confirm binary execution:
which termrec && termrec --version - Record a shell session to an output file:
termrec session.ttyrec - If your workflow requires modern web sharing and vector playback, consider installing the active modern standard:
sudo apt install -y asciinema