Installing MythTV on RHEL/CentOS

From MythTV Official Wiki
Jump to: navigation, search

This is a collection of information to help set up MythTV on a Red Hat Enterprise Linux (RHEL) or CentOS machine.


Installing MythTV on RHEL/CentOS is nearly identical to Fedora. Fedora has well updated how-tos, so this guide will note only the differences in installing MythTV on RHEL or CentOS.

Why choose RHEL/CentOS

Fedora is one of the most popular and most supported in the Myth community. One of the major downfalls of Fedora is the life cycle is only ~6 months and packages are only updated for the two most recent releases. This means to stay on a supported OS you must upgrade or completely redo your Myth box every year. RHEL/CentOS gives you the advantage of using a OS that is nearly identical to Fedora yet supported for more than six years.

Choosing between RHEL or CentOS

RHEL is Red Hat's enterprise distribution, generally used for servers that require long life cycles and stability. Based on the development of Fedora, RHEL is sold with support through Red Hat. While support is of great value, many users of MythTV may be looking to save money, and rely on the community for support. This is where CentOS comes in. Since RHEL is based on GPL software, Red Hat must release the source to the entire OS. The CentOS developers remove the Red Hat logos and trademarks to create CentOS. CentOS is 100% binary compatible with RHEL, so RPMs for EL work with CentOS.

Scientific Linux, another 100% RHEL binary compatible distribution, is another option.

RHEL 5.x

Enabling DVB

As RHEL is designed for being an enterprise class operating system, most of the DVB and v4l functionality is left out of the kernel to keep it minimalistic, free of clutter and to eliminate any possible issues with newly introduced modules. The CentOSPlus kernel includes all v4l and DVB modules needed to work with most established tuner cards. To install:

su -  
yum update kernel --enablerepo=centosplus

Enabling the CentOSPlus repo by default is strongly discouraged as there is a high likelihood of one of its packages conflicting with a base distribution package or service. Ensure the CentOSPlus kernel is loaded on boot by running either system-config-boot from the GNOME System->Administration menu, or hand editing /boot/grub/grub.conf. After installation, there should be no need to upgrade the kernel unless a critical flaw is found. If it aint broke, don't fix it!

DVB should now be available.

Configuring Yum Repo's

QT 4.5

Starting with MythTV's subversion changeset 25232, compiling MythTV requires Qt v4.5. Qt 4.5 RPMs for RHEL5/CentOS5 are available from The following required packages can be found from various mirrors around the net or by going to the main site directly. Instructions for using the repository are available at:





PHP 5.3

If you are using Mythweb, you will also need to install PHP 5.3. Remi Collet has made them available at as referenced on the CentOS repository page



Important.png Note: el5 packages are available for MythTV 0.24.2 and 0.24.3 but not for 0.25+. Check for current el5 availability.

Important.png Note: Axel has stated that 0.25+ will never be available for el5 since it cannot compile for the stock kernel due to library support issues. Other users have said that 0.25+ *can* run on el5 but you have to install a more modern kernel and manually compile and install your own version of MythTV.

Like Fedora, Axel provides great packages for RHEL/CentOS. To install the repo on i386 run:

rpm -i

For x86-64

rpm -i

You will need to enable the testing repo to get the appropriate dependencies.

vim /etc/yum.repos.d/atrpms.repo
# requires stable
name=Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing

Example i386 version of /etc/yum.repos.d/ATrpms.repo

name=EL $releasever - $basearch - ATrpms

name=EL $releasever - $basearch - ATrpms - ATrpms testing

RPM Forge

Although RPM Forge is not required for MythTV, it provides many packages a home user may want.

EL5 i386:

rpm -Uhv

Red Hat Enterprise Linux 5 / x86_64:

rpm -Uhv


EPEL was started because many Fedora contributors wanted to use the Fedora packages they maintain on Red Hat Enterprise Linux (RHEL) and its compatible derivatives.

To install for both i386 and x86-64

rpm -Uvh

Compiling MythTV 0.24 from source

On CentOS 5, you can compile MythTV 0.24 from source with some additional steps:

  1. Make sure you have the video4linux-devel, kernel-devel, and kernel-headers packages from ATrpms and CentOS installed
  2. Add the --dvb-path=/usr/include/v4l line to your configure script to use the video4linux headers
  3. Create a symbolic link from the kernel sources compile.h to your include directory using:
ln -s /usr/src/kernels/`uname -r`/include/linux/compiler.h /usr/include/linux/compiler.h

There will also be issues with Python because the Python version shipped with CentOS is older than what MythTV requires. This section should be updated with more detailed information on workarounds for that issue.


From this point the differences between Fedora and RHEL/CentOS are extremely Trival. Continue your install from the Fedora page

RHEL 6.x

Installing MythTV on RHEL6 can be done from the ATRPMS Repos. I wrote a guide here.

You can see which el6 MythTV package versions are currently available here:

RHEL 7.x

MythTV works well on CentOS 7, including with SELinux enabled.

Installing MythTV on RHEL7 can be done using the nux-desktop and EPEL repos.

Enable the repos:

 yum -y install epel-release && rpm -Uvh

Then install mythtv and plugins (for example):

 yum install mythtv mythweb mythnetvision

After that, setup up the database following the main MythTV instructions by importing mc.sql.

To get MythWeb working over the network you will need to open up the http and/or https ports in the default firewall config. This can be done using the Firewall GUI program (remember to change the permanent settings as well as runtime).