The official Linux runtime is built on manylinux_2_28 and works on Ubuntu 20.04+, Debian 10+, RHEL/AlmaLinux 8+, and other distributions with glibc 2.28+.
Standard Installation (includes GTK3 for GUI support):
dotnet add package OpenCvSharp5
dotnet add package OpenCvSharp5.official.runtime.linux-x64
Headless Profile (Full module set, no GTK3/X11 dependency):
Use this for containerized services that need modules like videoio or dnn but do not need GUI functions (e.g., Cv2.ImShow).
dotnet add package OpenCvSharp5.official.runtime.linux-x64.headless
Slim Profile (Reduced module set, no GUI dependency):
Use this for the smallest possible footprint. It disables contrib, dnn, videoio, and highgui.
dotnet add package OpenCvSharp5.official.runtime.linux-x64.slim
dotnet add package OpenCvSharp5
dotnet add package OpenCvSharp5.official.runtime.linux-x64