Installing dependencies on Enterprise Linux

The following instructions are for distributions based on Enterprise Linux 8 and 9 (such as Rocky Linux and AlmaLinux), as well as CentOS Stream.

Basic requirements to run commands:


Additional dependencies not available in the base repository:

Intel Quick Sync Video dependencies (optional):

Graphical interface dependencies:

Additional graphical interface dependencies not available in the base repository:

Install dependencies.

sudo dnf install autoconf automake bzip2 cmake diffutils dnf-plugins-core fribidi-devel gcc-c++ git libtool libxml2-devel m4 make numactl-devel patch pkg-config python39 tar xz-devel

Enable the Enterprise Linux PowerTools repository and install related additional dependencies.

sudo dnf config-manager --set-enabled crb || sudo dnf config-manager --set-enabled powertools
sudo dnf install jansson-devel lame-devel libogg-devel libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel meson nasm ninja-build opus-devel speex-devel turbojpeg-devel

Install the EPEL repository and related additional dependencies.

# AlmaLinux/Rocky Linux:
sudo dnf install epel-release
sudo dnf install libass-devel

# CentOS Stream:
sudo dnf install epel-next-release
sudo dnf install libass-devel

Install the RPM Fusion Free repository and related additional dependencies.

sudo dnf localinstall --nogpgcheck$(rpm -E %rhel).noarch.rpm
sudo dnf install x264-devel

To build with Intel Quick Sync Video support, install the QSV dependencies.

sudo dnf install libva-devel libdrm-devel

To build the GTK GUI, install the graphical interface dependencies.

sudo dnf install appstream desktop-file-utils gstreamer1-libav gstreamer1-plugins-base-devel gstreamer1-plugins-good gtk4-devel

Enterprise Linux is now prepared to build HandBrake. See Building HandBrake for Linux for further instructions.