Trying to install wine using the usual yum command but here is what it says when giving the following command.
shell>> 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
for i386 http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
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-updateIt 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.
shell>> which wine
/usr/bin/wine
********** ADA YANG PAKE YUM ***********
Wine requires many more files than just the RPM. The best way to install wine is using yum. However. CentOS does not come with an "Extras Repository" out of the box. so here are instructions to create a yum repo and install wine using yum.
paste the following into a file /etc/yum.repos.d/kbsingh-CentOS-Extras.repo
[kbs-CentOS-Extras]
name=CentOS.Karan.Org-EL$releasever - Stable
gpgcheck=1
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
enabled=1
baseurl=http://centos.karan.org/el$releasever/extras/stable/$basearch/RPMS/
# Need a ftp mirror ? uncomment the line below, & disable the one above
# baseurl=ftp://rpm.karan.org/pub/kbsingh/el$releasever/extras/stable/$basearch/RPMS/
save the file, go the the command line and type 'yum install wine' (without the quotes) if it is done correctly you should see output similar to what you se below.
[root@localhost downloads]# yum install wine
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
wine i386 0.9.20-1.el4.kb kbs-CentOS-Extras 15 k
Installing for dependencies:
lcms i386 1.15-1.el4.kb kbs-CentOS-Extras 154 k
libieee1284 i386 0.2.8-4 base 30 k
sane-backends i386 1.0.14-6 base 2.5 M
wine-capi i386 0.9.20-1.el4.kb kbs-CentOS-Extras 18 k
wine-cms i386 0.9.20-1.el4.kb kbs-CentOS-Extras 30 k
wine-core i386 0.9.20-1.el4.kb kbs-CentOS-Extras 8.9 M
wine-esd i386 0.9.20-1.el4.kb kbs-CentOS-Extras 29 k
wine-jack i386 0.9.20-1.el4.kb kbs-CentOS-Extras 18 k
wine-ldap i386 0.9.20-1.el4.kb kbs-CentOS-Extras 69 k
wine-nas i386 0.9.20-1.el4.kb kbs-CentOS-Extras 18 k
wine-tools i386 0.9.20-1.el4.kb kbs-CentOS-Extras 487 k
wine-twain i386 0.9.20-1.el4.kb kbs-CentOS-Extras 22 k
Transaction Summary
=============================================================================
Install 13 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 12 M
Is this ok [y/N]: Y
Downloading Packages:
(1/13): wine-capi-0.9.20- 100% |=========================| 18 kB 00:00
(2/13): wine-ldap-0.9.20- 100% |=========================| 69 kB 00:01
(3/13): wine-nas-0.9.20-1 100% |=========================| 18 kB 00:00
(4/13): wine-twain-0.9.20 100% |=========================| 22 kB 00:00
(5/13): wine-esd-0.9.20-1 100% |=========================| 29 kB 00:00
(6/13): wine-core-0.9.20- 100% |=========================| 8.9 MB 04:06
(7/13): lcms-1.15-1.el4.k 100% |=========================| 154 kB 00:02
(8/13): wine-jack-0.9.20- 100% |=========================| 18 kB 00:00
(9/13): sane-backends-1.0 100% |=========================| 2.5 MB 00:08
(10/13): wine-0.9.20-1.el 100% |=========================| 15 kB 00:00
(11/13): libieee1284-0.2. 100% |=========================| 30 kB 00:00
(12/13): wine-tools-0.9.2 100% |=========================| 487 kB 00:09
(13/13): wine-cms-0.9.20- 100% |=========================| 30 kB 00:00
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 3e13cf5b
Public key for wine-capi-0.9.20-1.el4.kb.i386.rpm is not installed
Retrieving GPG key from http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
Importing GPG key 0x3E13CF5B "Karanbir Singh (http://www.karan.org/) <kbsingh@karan.org>"
Is this ok [y/N]: y
Key imported successfully
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libieee1284 ####################### [ 1/13]
Installing: sane-backends ####################### [ 2/13]
Installing: wine-core ####################### [ 3/13]
Installing: wine-capi ####################### [ 4/13]
Installing: wine-ldap ####################### [ 5/13]
Installing: wine-nas ####################### [ 6/13]
Installing: wine-twain ####################### [ 7/13]
Installing: wine-esd ####################### [ 8/13]
Installing: wine-jack ####################### [ 9/13]
Installing: wine-tools ####################### [10/13]
Installing: lcms ####################### [11/13]
Installing: wine-cms ####################### [12/13]
Installing: wine ####################### [13/13]
Installed: wine.i386 0:0.9.20-1.el4.kb
Dependency Installed: lcms.i386 0:1.15-1.el4.kb libieee1284.i386 0:0.2.8-4 sane-backends.i386 0:1.0.14-6 wine-capi.i386 0:0.9.20-1.el4.kb wine-cms.i386 0:0.9.20-1.el4.kb wine-core.i386 0:0.9.20-1.el4.kb wine-esd.i386 0:0.9.20-1.el4.kb wine-jack.i386 0:0.9.20-1.el4.kb wine-ldap.i386 0:0.9.20-1.el4.kb wine-nas.i386 0:0.9.20-1.el4.kb wine-tools.i386 0:0.9.20-1.el4.kb wine-twain.i386 0:0.9.20-1.el4.kb
Complete!
[root@localhost downloads]#
Wine should now be properly installed. If none of this makes sense try the website http://centos.karan.org/ for more information. and you could also try
root@localhost# man yum
this will teach you about yum.
No comments:
Post a Comment