In this article, we will explain how to install FFmpeg on CentOS and RHEL.
The FFmpeg package is not available from the official repositories of CentOS and RHEL, therefore users need to install additional repositories.
How to Install FFmpeg on CentOS-
Here’s the procedure for installing FFmpeg on CentOS 7, use the Nux Dextop repository:
- Open your Terminal and log into as root account.
- Execute the following command to install EPEL repository-
sudo yum install epel-release - Next, ensure your system and packages are up to date by executing the following command-
sudo yum update - Now, use the below commands to install the Nux Dextop repository-
sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm - Finally, you need to enter this command to install FFmpeg and its development package-
sudo yum install ffmpeg ffmpeg-devel -y
How to install RHEL 7/8 –
Follow these steps to install FFmpeg on RHEL 7/8 using the RPM Fusion repository:
- Log into your terminal as a root account.
- Enter the following command and press Enter to update the system.
sudo yum update - Add the EPEL repository by executing this command and pressing Enter.
sudo yum install epel-release - Next, run any of these commands to install RPM fusion:
- RHEL 7
yum localinstall –nogpgcheck
https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
https://download.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm - RHEL 8
yum localinstall –nogpgcheck
https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
- RHEL 7
- Install FFmpeg and its development packages by executing the following command:
sudo yum install ffmpeg ffmpeg-devel -y
In this way, you can Install FFmpeg on CentOS and RHEL. For more information, visit our knowledge base section.
Need to maintain your RPM database? Learn How to Rebuild an RPM Database using WHM and SSH.