Install from source
Running from source is how you use TRACE on Linux, and how you follow the newest code on any system. One script per platform does the whole install.
You need Python 3.10 or newer – and nothing else. No C compiler, no Visual Studio Build Tools, and on macOS no Homebrew: The Sleuth Kit (pytsk3), libewf and every other forensic engine install as pre-built wheels for Windows, macOS (Apple Silicon and Intel) and Linux. The installers refuse to fall back to compiling, so a missing wheel fails clearly instead of half-way through a C build.
-
Install Python 3.10 or newer from python.org if you do not have it.
-
Get the code and run the installer in PowerShell:
Terminal window git clone https://github.com/Gadzhovski/TRACE-Forensic-Toolkit.gitcd TRACE-Forensic-Toolkitpowershell -ExecutionPolicy Bypass -File install_windows.ps1 -
Start TRACE – from any folder, no environment to activate:
Terminal window TRACE.cmd
The installer looks for Python with the py launcher too, newest first, so a machine whose default python is older still installs. Add -Yes to accept every default without questions.
-
Install Python 3.10 or newer from python.org. macOS’s own
python3is 3.9, which is too old. -
Get the code and run the installer:
Terminal window git clone https://github.com/Gadzhovski/TRACE-Forensic-Toolkit.gitcd TRACE-Forensic-Toolkit./install.sh -
Start TRACE – from any folder, no environment to activate:
Terminal window ./trace
Nothing outside Python is installed. File-type identification (libmagic) comes from the pylibmagic wheel, and TRACE logs at start-up which copy it loaded. The test suite and the packaged self-test both fail if it is any other copy – such as one Homebrew put on the machine.
-
Get the code and run the installer:
Terminal window git clone https://github.com/Gadzhovski/TRACE-Forensic-Toolkit.gitcd TRACE-Forensic-Toolkit./install.shIt asks for your
sudopassword once, up front, and installs the runtime libraries Qt and libmagic need with your distribution’s package manager – apt, dnf, pacman or zypper (below). Where the system’spython3is older than 3.10 (RHEL / Rocky 9, openSUSE Leap 15) it installs a newer Python too. -
Start TRACE – from any folder, no environment to activate:
Terminal window ./trace
The system packages, all runtime only (no recommended extras, so no compiler arrives with them). On Debian and Ubuntu:
python3 python3-venv python3-piplibmagic1libxcb-cursor0 libxcb-xinerama0 libxcb-icccm4 libxcb-keysyms1 libxcb-shape0libegl1 libxkbcommon-x11-0 libgl1libglib2.0-0 libfontconfig1 libdbus-1-3libpulse0 # Qt Multimedia -- without it the window cannot openlibgssapi-krb5-2 # Qt Network| Distribution | Package manager | Checked on |
|---|---|---|
| Ubuntu, Debian, Mint, Kali, WSL | apt | Ubuntu 24.04, Debian 13 |
| Fedora, RHEL, Rocky, Alma | dnf | Fedora 42, Rocky 9 |
| Arch, Manjaro | pacman | Arch (run sudo pacman -Syu first if the package database is old) |
| openSUSE | zypper | Tumbleweed, Leap 15.6 |
On any other distribution the script lists what to install, then carries on.
Installer options
Section titled “Installer options”./install.sh --yes / install_windows.ps1 -Yes |
non-interactive: accept the detected platform and the defaults |
TRACE_PYTHON=/path/to/python3.12 ./install.sh |
use this interpreter rather than the newest one found |
$env:TRACE_PYTHON = 'C:\Python312\python.exe' |
the same on Windows, before running install_windows.ps1 |
install.log |
everything the install did, beside the scripts – attach the end of it to an install bug report |
The scripts work in their own folder wherever you start them from, and can be run again at any time: a working venv is kept; one whose Python no longer runs, or is older than 3.10, is rebuilt.
Before it says TRACE is installed, the installer checks it: the forensic engines, Qt and libmagic must load, and on Linux every library TRACE’s window needs must be on the system – a missing one is named with the package that holds it. The launchers it writes (./trace, TRACE.cmd) start TRACE with its own Python; activating the venv and running python main.py still works too.
Long steps never scroll: on a terminal, one line shows what is happening now (Downloading pyside6 6.11.2 (175 MB)), and a failing step prints the end of install.log.
Installing by hand
Section titled “Installing by hand”In an activated virtual environment:
pip install -r requirements.txtpython main.pyThere is one requirements.txt for every platform; Windows-only packages carry environment markers, so the same file is correct everywhere.
Updating
Section titled “Updating”git pull./install.sh # or install_windows.ps1 on WindowsRunning the tests
Section titled “Running the tests”The test suite downloads public forensic images (checked against recorded SHA-256s) and runs in parallel:
python tools/fetch_test_images.pypython -m pytest -n auto --dist loadfileSee Testing and validation for what it covers.