Sunday, September 4, 2011

How To Install VLC on RHEL6

This is going to be a lengthy post..
First visit and see what information they have regarding RHEL ( Red Hat Enterprise Linux ) support, then if you have to, come back here and read rest of this post.

Now, as of today the package for VLC for RHEL is available on RPMforge so start by installing this repository, visit:

The information on the above site is related to CentOS but you should know (if you already don't) it's binary compatible with RHEL, as such works for RHEL as well.
You can download the RPMforge release package from,

Look for latest build for you version of Red Hat, mine is 6 and on a 32 bit system (running on VMware Player) so as of today I will download,


Use the rpm command to install,
eg. rpm -ivh ./rpmforge-release-0.5.2-2.el6.rf.i686.rpm
 yum check-update 

Use cd "path to the rpm file" without the quotes before executing the above command or simply add the path instead of ./ and don't forget  "su -" to execute all the commands as root.

You will also need ( if you don't have RHN subscription) to configure a repository or manually install dependencies from the RHEL6 DVD media ( "Packages" directory).

To configure a local repository follow the instruction given below,
Start by copying the contents of the Packages directory to a directory on you Linux file system, mine is saved under, /mnt/hgfs/Packages/
As you should already know I use VMware Player and as such had the "Shared Folder" option to have the path setup by the player.
Now to create the repository as root change your pwd to /etc/yum.repos.d/ and use a text editor to create a file, I named mine server.repo as I am running the Server release. (eg. vi ./server.repo)

My server.repo file has the following content,

name=DVD packages

Don't forget to put the correct path for "baseurl=file:///", as the one shown above is the one I created on my filesystem.

You might need to install the following packages from the DVD before you can continue,


also import the GPG key from the DVD,
rpm --import RPM-GPG-KEY-redhat-release
Go ahead and execute the following command make sure you provide the path relevant to your system,

createrepo -v /mnt/hgfs/Packages/

If you did everything right execute,
 yum install vlc

Mine ended by reporting missing dependencies, 

1.  is provided by cppunit-1.12.1-3.1.el6.i686.rpm

2. is provided by freeglut-2.4.0-9.el6.i686.rpm
both can be downloaded from,

Please remember the version number won't be relevent to you as newer packages keep coming, hence search by the package name, eg. cppunit, and download the most recent 32 or 64 bit version.

If you didn't break anything executing yum install vlc should end with something like shown below,

 Dependencies Resolved

Package Arch Version Repository Size
vlc i686 1.1.11-1.el6.rf rpmforge 14 M
Installing for dependencies:
SDL i686 1.2.14-2.el6 server 200 k
SDL_image i686 1.2.10-1.el6.rf rpmforge 82 k
a52dec i686 0.7.4-8.el6.rf rpmforge 82 k
aalib i686 1.4.0-5.el6.rf rpmforge 167 k
dirac i686 1.0.2-1.el6.rf rpmforge 2.1 M
enca i686 1.10-1.el6.rf rpmforge 166 k
faac i686 1.26-1.el6.rf rpmforge 137 k
faad2 i686 2.7-1.el6.rf rpmforge 302 k
ffmpeg i686 0.6.1-1.el6.rf rpmforge 2.6 M
ffmpeg-libpostproc i686 0.6.1-1.el6.rf rpmforge 22 k
fribidi i686 0.10.9-1.el6.rf rpmforge 67 k
lame i686 3.98.4-1.el6.rf rpmforge 513 k
libXpm i686 3.5.8-2.el6 server 58 k
libass i686 0.9.11-1.el6.rf rpmforge 142 k
libcaca i686 0.99-0.1.beta17.el6.rf rpmforge 327 k
libcddb i686 1.3.1-1.el6.rf rpmforge 97 k
libdc1394 i686 2.1.2-3.4.el6 server 118 k
libdca i686 0.0.5-1.el6.rf rpmforge 127 k
libdvbpsi i686 0.1.7-1.el6.rf rpmforge 76 k
libdvdnav i686 0.1.10-3.el6.rf rpmforge 200 k
libdvdread i686 4.1.4-0.2.svn1183.el6 server 63 k
libebml i686 1.0.0-1.el6.rf rpmforge 242 k
libkate i686 0.3.7-1.el6.rf rpmforge 99 k
libmad i686 0.15.1b-4.el6.rf rpmforge 72 k
libmatroska i686 1.0.0-1.el6.rf rpmforge 590 k
libmng i686 1.0.10-4.1.el6 server 171 k
libmodplug i686 0.8.7-1.el6.rf rpmforge 376 k
libmpeg2 i686 0.5.1-2.el6.rf rpmforge 140 k
librtmp i686 2.3-1.el6.rf rpmforge 103 k
libupnp i686 1.6.6-1.el6.rf rpmforge 246 k
libva i686 1.0.6-1.el6.rf rpmforge 155 k
live555 i686 0-0.27.2010.04.09.el6.rf rpmforge 696 k
opencore-amr i686 0.1.2-1.el6.rf rpmforge 359 k
opencv i686 2.0.0-9.el6 server 4.4 M
orc i686 0.4.11-1.el6.rf rpmforge 297 k
phonon-backend-gstreamer i686 1:4.6.2-16.el6 server 124 k
portaudio i686 19-1.20071207.el6.rf rpmforge 258 k
qt i686 1:4.6.2-16.el6 server 4.1 M
qt-sqlite i686 1:4.6.2-16.el6 server 50 k
qt-x11 i686 1:4.6.2-16.el6 server 12 M
schroedinger i686 1.0.10-1.el6.rf rpmforge 555 k
svgalib i686 1.9.25-1.el6.rf rpmforge 718 k
twolame i686 0.3.13-1.el6.rf rpmforge 117 k
unicap i686 0.9.5-4.el6 server 157 k
x264 i686 0.0.0-0.4.20101111.el6.rf rpmforge 1.0 M
zvbi i686 0.2.33-2.el6.rf rpmforge 837 k

Transaction Summary
Install 47 Package(s)
Upgrade 0 Package(s)

Total download size: 50 M
Installed size: 165 M
 Is this ok [y/N]:

In case you want to download the vlc package and it's dependencies on another system and then transfer it to your system running Red Hat get the packages listed above from,

In case you find any error(s) in this post, technical or otherwise do inform me.

The author is not liable for any loss or damage you might incur by following the instructions provided here, try at your own risk.

No comments:

Post a Comment