
Linux users desesperately looking for multimedia support (generated by Midjourney). Credit: libre-software.net. License: CC BY-SA 4.0
Multimedia, codecs, MP3 & DVD support on RHEL, CentOS, AlmaLinux, Oracle Linux …
Last updated on October 10, 2022
This article has been archived and may contain outdated information.
This tutorial details how to install full multimedia support, media codecs, MP3 & DVD support on Red Hat Enterprise Linux (RHEL) and its derivatives CentOS, AlmaLinux, Rocky Linux or Oracle Linux.
Note: if you did’t add yourself to the sudoers, just rund every command of this howto as root, without the sudo prefix. Or follow this tutorial to add yourself to the sudoers.

Install GStreamer packages
Following packages should already be installed by default on a fresh RHEL / CentOS Oracle Linux (…) installation:
sudo yum install gstreamer gstreamer-plugins-base gstreamer-plugins-good gstreamer-plugins-bad-free
Install the GStreamer modules which are available in the RPMForge repository – note that there are quite a few dependencies:
sudo yum install gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg
Apart of containing decoders, gstreamer-ffmpeg is the plugin Gnome needs to generate thumbnails for the file browser (Nautilus) and the desktop. Find more information on GStreamer modules on the GStreamer website.
Some of the dependencies are no less than ffmpeg (one of the most important codecs), lame, libcdaudio, libdvdread, libmodplug, libmpeg2, libquicktime, mjpegtools, x264 and xvidcore. Most of them are from RPMforge.
Install more codecs for CentOS
Give mplayer a try:
sudo yum install mplayer mplayer-gui
Once again, there are many dependencies for mplayer, among them esound-libs, libcaca (sic!), libvdpau, mpg123 and svgalib.
Finally, take a look at this page if you feel you’ll be missing w32codecs
.
Add libdvdcss for DVD support
Following packages are available from RPMforge:sudo yum install
libdvdnav libdvdplay lsdvd
The problematic package is libdvdcss, as it is not available through RPMforge. Libdvdcss can be obtained from Livna:sudo rpm -Uvh http://rpm.livna.org/livna-release.rpm
Alternatively, you can browse Livna to download the package by yourself.

Install VLC Media Player
A Linux installation wouldn’t be complete without the King of all Video players, also available through RPMforge (it also has quite a few dependencies):sudo yum install vlc
That’s all! You should now be able to play any media format on CentOS.
By Johannes Eva, 2012 – October 2022
This article has been linked on LXer.com and some more…
7 thoughts on “How to set up automatic updates on Ubuntu Server 20.04, 22.04 or 24.04”
is there a way to setup the updates to run on a specific day of the week, eg: Saturdays at 6am? or something like that?
Pingback: LINUX SERVER MANAGE TIPS – CFC Studio
What about the
/etc/apt/apt.conf.d/10periodic
file? It has the same content as/etc/apt/apt.conf.d/20auto-upgrades
.Personally, I would not recommend to configure the auto reboot (step 2).
One of the good things about linux is that nearly all updates do not require system reboot.
This setting makes linux behave like windows, doesn’t it?
It does need to reboot on kernel updates however. And this apparently checks whether a reboot is required before rebooting.
Stu*** comment… you’re just saying it shouldn’t do it because it shouldn’t behave like Windows. Something is not wrong, just because has the same behaviour. Then Linux shouldn’t store data in files, because Windows does the same, it shouldn’t use SSDs, USB disks, ..
Don’t uncomment
${distro_id}:${distro_codename}-updates
unless you know what you’re doing. This will enable unattended NON-SECURITY updates, which may break your server configuration.