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:
- curl
- sudo (for normal user accounts)
Dependencies:
- autoconf
- automake
- bzip2
- cmake
- diffutils
- dnf-plugins-core
- fribidi-devel
- gcc-c++
- git
- libxml2-devel
- libtool
- m4
- make
- numactl-devel
- patch
- pkg-config
- python3
- tar
- xz-devel
Additional dependencies not available in the base repository:
- jansson-devel [PowerTools]
- lame-devel [PowerTools]
- libass-devel [EPEL]
- libogg-devel [PowerTools]
- libsamplerate-devel [PowerTools]
- libtheora-devel [PowerTools]
- libvorbis-devel [PowerTools]
- libvpx-devel [PowerTools]
- meson [PowerTools]
- nasm [PowerTools]
- ninja-build [PowerTools]
- opus-devel [PowerTools]
- speex-devel [PowerTools]
- turbojpeg-devel [PowerTools]
- x264-devel [RPM Fusion]
Intel Quick Sync Video dependencies (optional):
- libva-devel
- libdrm-devel
Graphical interface dependencies:
- desktop-file-utils
- gstreamer1-libav
- gstreamer1-plugins-base-devel
- gstreamer1-plugins-good
- gtk3-devel
Additional graphical interface dependencies not available in the base repository:
- appstream [EPEL]
- gstreamer1-libav [RPM Fusion]
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 https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$(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 gtk3-devel
Enterprise Linux is now prepared to build HandBrake. See Building HandBrake for Linux for further instructions.