Linux, Tutorials

How to install VLC Media player in CentOS 6.x

Sending
User Rating 4.5 (2 votes)
How to install VLC Media player in CentOS 6.x step by step
I installed CentOS v6.4 in my system and started installing various applications to make my system a place for programmers with some entertainment applications. I tried to play mp3 songs and video songs but rhythm, Mplayer gave below errors for that I had to do lots of hard work just to listen a song, I was not in mood to explore and search and download those missing plugins.

So, I decided to install one of my all-time favorite player (KMPlayer when I am using Windows) VLC media player. It was not so easy to install it in CentOs as it seemed. I though downloading rpm package or tar file would do the things. But it required lots of steps before playing the first song in VLC.You need to install listed four libraries before installing vlc in your local repository:

  • epel
  • remi
  • rpmfusion-free
  • rpmfusion-nonfree
Here are the working steps to install VLC Media player in CentOS 6.x:

Step 1
First you need to make a local repository of epel by using yum command (login as root to use yum command) below command:

# yum localinstall –nogpgcheck http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm


Then type y to get epel installed properly. Then you will see the confirmation message like this:



Step 2
Now you need to install remi by using below command:
# yum localinstall –nogpgcheck http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Type y and complete the installation. You will see below image after successful completion.

Step 3
Now install rpmfusion free by typing below command
# yum localinstall –nogpgcheck
http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm



Type y to complete the installation 

Step 4
Now install rpmfusion nonfree library by using below command
# yum localinstall –nogpgcheck http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm



Type y to complete the installation 
Step 5
You may skip this step. But just to confirm that all above libraries went well and you are able to find vlc info from the repository. If yes, then proceed to install VLC else you have some issue.

# yum –enablerepo=remi-test info vlc

Step 6
Now you can install VLC easily. Just type the below command:
# yum –enablerepo=remi-test install vlc


Step 7



Now it’s the time to play a song using VLC Media player. You may find it under application or use command prompt and type start vlc (be sure you are running the command as a non-root user else it will give error).

Share your Thoughts