Thursday 12 July 2012

Install Wine on Cent OS 5


Install Wine on Cent OS 5




WINE Download path: http://www.winehq.org/download/


Method1:
======================================

First step was to load the EPEL yum repository:
#rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
Next I just called yum to install wine:
#yum install wine
===========================================


Method2:
Trying to install wine using the usual yum command but here is what it says when giving the following command.


# yum install wine                                                                                                                           Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* base: centose.centos.org
* updates: centosj.centos.org
* addons: centosh3.centos.org
* extras: centose-msync-dvd.centos.org
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
No package wine available.
Nothing to do



Well the reason is Wine software is not a part of standard CentOS. There is a section on 3rd party repositories called RPMForge. So we will proceed installing the Repositories.
1.) You should make sure that you have Priorities installed
yum-priorities is available in the CentOS 5 repositories:
#yum install yum-priorities
Plugins are enabled in CentOS 5 by default
Make sure that yum-priorities is enabled by editing the /etc/yum/pluginconf.d/priorities.conf file, and ensuring that it contains the following lines:
[main]
enabled=1
Download the rpmforge-release package. Choose one of the two links below, depending on your architecture. If you are unsure of which one to use you can check your architecture with the command uname -i
Install DAG’s GPG key
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Verify the package you have downloaded
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the package and trust Dag then it should be safe.
Install the package
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
This will add a yum repository config file and import the appropriate GPG keys. At this point, you can set the priority of the RPMForge repository, and also of the CentOS repositories if you have not done so yet.
Test with this command:
#yum check-update it should output these two lines:
Loading “priorities” plugin

76 packages excluded due to repository priority protectionsThe number above may differ, but there should be several packages shown as being excluded.
If so then it looks like things are working so try installing something like this
#yum –enablerepo=rpmforge install wine
Thats all Wine is installed.
# which wine
/usr/bin/wine

No comments:

Post a Comment