We will explain how you can install the FFMPEG application on almalinux 8 server using ssh terminal.
If you want the users to stream the audio-video content on your website, you need to install FFMPEG. FFMPEG is an application that has cross-platform support, meaning it can run on all platforms.
It also comes with a PHP extension allowing the users to process their files via web pages with the PHP language.
To Install FFMPEG
Log in to your server using root login details
Step 1: Enable the EPEL and RPM Fusion Repositories
AlmaLinux 8 uses dnf
as its package manager instead of yum
. To install ffmpeg
, you will need to enable the EPEL and RPM Fusion repositories.
1
|
dnf install epel-release -y
|
Enable RPM Fusion repository (free and non-free):
1
2
|
dnf install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm -y
dnf install https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm -y |
Step 2: Install FFmpeg
Now that the RPM Fusion repository is enabled, install ffmpeg
and its development packages:
1
|
dnf install ffmpeg ffmpeg-devel -y |
Step 3: Install Missing Dependencies (If Needed)
If ffmpeg
still fails due to missing dependencies, try manually installing the necessary libraries using dnf
. For instance:
1
|
dnf install libcdio libcdio-paranoia -y
|
Step 4: Alternative Installation via Nux Dextop Repository
If ffmpeg
installation from RPM Fusion still doesn’t resolve, you can try using the Nux Dextop repository. This repository often provides additional packages for Enterprise Linux distributions like CentOS, AlmaLinux, and CloudLinux.
- Enable Nux Dextop Repository:
1
|
rpm -v –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
dnf install http://li.nux.ro/download/nux/dextop/el8/x86_64/nux-dextop-release-0-2.el8.nux.noarch.rpm -y |
Install FFmpeg:
1
|
dnf install ffmpeg ffmpeg-devel -y
|
Step 5: Verify Installation
After installing ffmpeg
, verify it using the following command:
1
|
ffmpeg -version
|
Notes on CloudLinux and CageFS
Since you are using CloudLinux, ensure that ffmpeg
is enabled inside CageFS (if CageFS is enabled on your server). If it’s not available within CageFS, follow these steps:
- Add
ffmpeg
to CageFS:
1
|
cagefsctl –enable-ffmpeg
cagefsctl –force-update |
Check if ffmpeg
is available for your users:
1
|
cagefsctl –list-enabled-packages | grep ffmpeg
|
Conclusion
This method should allow you to install ffmpeg
on AlmaLinux 8 with CloudLinux. By enabling the appropriate repositories and making sure ffmpeg
is available in CageFS (if applicable), you’ll be able to successfully install and use ffmpeg
.
Check out our cheap and reliable web hosting