VLC on CentOS – Installation

Prelude

Time was one would have to search around to find Video and Audio codec files to play videos on a personal computer.  But, like Mase and Brandy “I have sat on top of the World” since someone introduced me to VLC.

From that time till now, that is all I use on MS Windows, Apple OSX, and Linux.

 

Background

Googled for tested paths towards installing VLC on CentOS.  The links that came up are:

The instructions basically states that we should avail the EPEL repository along with the RPMForge repository.

 

Repository – EPEL

The EPEL repository contains prerequisite files.

# EPEL6-FAQ
# http://fedoraproject.org/wiki/EPEL6-FAQ
# EPEL6 is an add on repository for RHEL and it's variants. It contains packages that
# are not shipped
sudo yum localinstall --nogpgcheck http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

# epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm

 

Repository – RPMForge

The RPMForge repository contains the VLC RPM.

We will prepare our system for RPMForge installs by doing the following:

  • Install the repository GPG Key
  • Download the rmpg-release package
  • Verify the downloaded package
  • Install the package
  • Review the installed package

 

Based on the instructions available @ CentOs.org – Additional Resources >> Repositories >> RPMForge (  http://wiki.centos.org/AdditionalResources/Repositories/RPMForge ), here is a quick script that we used.

 

# Install RPMForge
# http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

#Install DAG's GPG key
sudo rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

#Download the package (x64)
sudo wget -O "rpmforge-release-0.5.3-1.el6.rf.i686.rpm"  "http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm"

#Download the package (x32)
sudo wget -O "rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm" "http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm"

#Verify the package you have downloaded
rpm -K rpmforge-release-0.5.3-1.el6.rf.*.rpm

#Install the package
sudo rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm

#Review Package
sudo rpm -qa | grep -i rpmforge

 

Ensure VLC RPM Package Availability

Using “yum info“, let us make sure that everything is in place for a good install.

 

Sample :

sudo yum info vlc


Output :

YumInfoVLC

 

 

Install VLC

 

Install VLC via rpm.

Sample :

sudo yum install vlc

 

Output:

InstallVLC

 

Use VLC

Once installed, one can initiate the app from the terminal mode by issuing VLC.

Or via the desktop menu – Sounds & Video \ “VLC Media Player”.

 

 

Error

I experienced a couple of problems preparing the repositories. I was able to scale them through others well lighted path.

I have documented those steps below:

 

Error: Cannot find a valid baseurl for repo: rpmfusion-free

Tried:

sudo yum localinstall –nogpgcheck http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

and

sudo yum localinstall –nogpgcheck http://mirrors.mediatemple.net/remi/enterprise/remi-release-6.rpm

 

But, got the same error:

Error: Cannot find a valid baseurl for repo: rpmfusion-free

 

Solution Guide

How to fix rpmfusion-(non)free repo error in CentOS 6.4
http://www.aliencoders.com/content/how-fix-rpmfusion-nonfree-repo-error-centos-64

 

The steps are:

  • Identify the Repository that rpmfusion is using
  • Remove Fedora RPM Fusion files
  • Install Prerequisite (EPEL 6)

 

Which Repo is rpmfusion* using?

Query active repositories by issuing “yum repolist enabled” request:

Command: 
yum repolist enabled | grep -i rpmfusion

Output:

listRepos for rpmFusion

We can see that rpmFusion is using the one for Fedora 6.


Remove Fedora Files

Remove installed rpmfusion repositories

#RPM Fusion for Fedora 6 - Free
sudo rpm -e rpmfusion-free-release

#RPM Fusion for Fedora 6 - Free - Updates
sudo rpm -e rpmfusion-free-updates-release   

 

 

Identify Redhat CentOS ( EL ) Files

Identify the files that we need:

Visit http://download1.rpmfusion.org/free/ and be sure to identify the URL to the files that we need for EL (Enterprise Linux ).

 

RPMFusion--Free--Folder

 

Install CentOS Files

Here is the script that we used for installing the RPMFusion files:

 

# EPEL6-FAQ
# http://fedoraproject.org/wiki/EPEL6-FAQ
# EPEL6 is an add on repository for RHEL and it's variants. It contains packages RHEL.
# yum local install
sudo yum localinstall --nogpgcheck http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

# epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm

# Install RPMFusion - v6 - free - works on 32/64 bit
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm 

# Install RPMFusion - v6 - nonfree - works on 32/64 bit
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm

   

 

 

Error: ERROR 22 – “The requested URL returned error: 403 Forbidden”

 

Tried:

sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
But, got the error:

http://centos.alt.ru/repository/centos/6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 403 Forbidden”

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again

 

Validate Problem

Review the current contents of the /etc/yum.repos.d/centalt.repo file.

 

Command:

cat /etc/yum.repos.d/centalt.repo

 

Output:

centalt-repo

 

 

Solution Guide

Here is the link we will follow to hopefully repair the problem.

repository metadata (repomd.xml) for repository: mratwork-centalt
http://unix.stackexchange.com/questions/132674/repository-metadata-repomd-xml-for-repository-mratwork-centalt

which states to change from a specific URL to a mirrored one.

In essence we are changing the baseurl from http://centos.alt.ru/repository/centos/6/$basearch/ to http://mirror.sysadminguide.net/centalt/repository/centos/6/$basearch/.

 

Example:

 

# mkdir /etc/yum.repos.d/deprecated/20140823
sudo mkdir -p /etc/yum.repos.d/deprecated/20140823

#backup file
sudo cp /etc/yum.repos.d/centalt.repo /etc/yum.repos.d/deprecated/20140823

#Change baseurl from old to new
#baseurl.new=http://centos.alt.ru/repository/centos/6/$basearch/ 
#baseurl.new=http://mirror.sysadminguide.net/centalt/repository/centos/6/$basearch/ 
sudo sed -i 's/centos.alt.ru/mirror.sysadminguide.net\/centalt/g' /etc/yum.repos.d/centalt.repo

 

References

References – Linux Installation Tools

References – Tool – YUM

 

References – Tool – RPM

 

References – Tool – Generic

 

References – Repository

References – Repository – epel

 

References – RPMForge

 

References – Linux Commands

 

References – Linux Commands – sed

 

References – VLC – Installation

 

References – VLC – Installation – Q&A

 

 

References – Repository – Installation – Errors

 

References – Error – Repository Metadata (respond.xml) for repository – CentAlt

 

References – Error – Fix rpmfusion

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s