Installation Methods
Fedora Package
Official package for Fedora 43+
Container Image
Run Retis in a container with Podman or Docker
COPR Repository
RPM packages for Fedora, RHEL, and EPEL
From Source
Build Retis from source code
Fedora
Starting with Fedora 43, Retis is available as an official package.Container Image
We provide a script to run Retis in a container for x86_64 and aarch64 targets. The current directory is mounted with read-write permissions to the container working directory, allowing Retis to read and write files (e.g., events, pcap). Both Podman and Docker runtimes are supported (auto-detected by the script).Container Options
By default, the script uses the latest stable version of Retis. Available tags can be seen on quay.io.
Environment Variables
The container script supports the following environment variables:RETIS_TAG- Set a specific version tagRETIS_IMAGE- Use an alternate image location (for disconnected environments)PAGERandNOPAGER- Control pager behavior (same as with the Retis binary)OVS_RUNDIR- Specify OVS runtime directory (default:/var/run/openvswitch)
COPR
RPM packages for Fedora (currently supported releases including Rawhide), RHEL (>= 8) and EPEL (>= 8) are available.From Sources
Retis depends on the following (in addition to Git and Cargo):- rust >= 2021
- clang
- jq
- libelf
- libpcap
- llvm
- make
- pkg-config
If the
python feature is used (which is by default), the Python3 shared libraries and headers must be available.Install Dependencies
Build Retis
Cross-Compilation
Retis can be cross-compiled and is currently supported on x86, x86-64 and aarch64. The target is defined using theCARGO_BUILD_TARGET environment variable.
When python support is built (enabled by default),
PYO3_CROSS_LIB_DIR= needs to be set to the directory containing the target’s libpython dynamic shared object. To disable Python support, use CARGO_CMD_OPTS=--no-default-features.Running as Non-Root
Retis can run as non-root if it has the right capabilities. Note that doing this alone often meanstracefs won’t be available as it’s usually owned by root only and Retis won’t be able to fully filter probes.
Shell Auto-Completion
Retis can generate completion files for shells (Bash, Zsh, Fish, etc.). For example, to enable auto-completion of Retis commands in Bash:.bashrc, command parameters will be auto-completed when pressing Tab.