About me

Name: Ivan Kartik
Location: Bratislava, Slovakia
I'm working as Senior Database Administrator in Bratislava, Slovak Republic. My interests are in RDBMS mainly Oracle, Unix (like) operating systems and in free time I am watching or playing ice-hockey, also I like to play golf.

[contact me]


Oracle (favourite) links

Oracle Technology Network
OTN Forums
Oracle Documentation
Ask Tom


Linux (favourite) links

Linux.com Portal
Linux section on OTN
The Linux Documentation Project


Favourite Blogs

Nicolas Gasparotto
Hans Forbrich
Jonathan Lewis
Frits Hoogland
H.Tonguç YIlmaz
Laurent Schneider
Christopher Jones
Jeff Hunter
Oracle WTF


My install articles

9i
Oracle 9i(R2) on Fedora 2,3,4,5,6
Oracle 9i(R2) on Enteprise Linux 4
Oracle 9i(R2) on SuSE 9.x,10.1
10g
Oracle 10g(R2) on EL and RH EL 3,4,5
Oracle 10g(R2) on Fedora 2,3,4
Oracle 10g(R2) on SuSE 9.x
Oracle 10g(R2) on Solaris 10 x86
11g
Oracle 11g(R1) on EL and RH EL 4,5
Oracle 11g(R1) on SLES10 and OpenSuSE
Oracle 11g(R2) on Solaris x86(64)


Downloads

rlwrap for Fedora (x86)
rlwrap for Redhat (x86)
rlwrap for SuSE (x86)
rlwrap for Redhat (x86_64)
rlwrap for Suse (x86_64)
rlwrap for Solaris 10 (x86)
readline for Solaris 10 (x86)
rlwrap for Solaris (SPARC 64)
readline for Solaris (SPARC 64)


Archives

January 2010
December 2009
November 2009
February 2009
January 2009
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
September 2007
August 2007
July 2007
April 2007
March 2007
February 2007
December 2006
November 2006
October 2006
September 2006
July 2006



How to install and setup Yum in OpenSUSE 11.1 and 11.2

Few days ago I received e-mail with question how to setup Yum on OpenSuse 11.2 as yum package is missing in official repository. Instead of reply I'm posting the solution here.
So in case you don't like the Yast utility (many people I know hates the Yast), missing some function that yum provides or you simply prefer installing/uninstalling packages using the Yum utility then here are the simple steps how to install and configure it on OpenSuse distribution (note OpenSuse 11.0 contains Yum package but it does not work on newer releases which contains python-2.6).

Download required packages:

From official OpenSuse repository:
python-gpgme
python-urlgrabber
rpm-python
yum-metadata-parser

Note: I you have registered package repository in Yast you can install it using:
yast -i python-gpgme python-urlgrabber rpm-python yum-metadata-parser


These packages are not available for Open Suse 11.1 and 11.2 so you need to donwload and install them manually:

python-sqlite2
yum-3.2.34-2

Yum package was built from source package shipped with Fedora 11 using this (just little modified) .spec file

Install downloaded packages:

# rpm -i python-sqlite2-2.4.1-2.1.x86_64.rpm yum-3.2.34-2-suse.noarch.rpm

Configure YUM:

Add folowing line to "[main]" section of /etc/yum.conf file:
distroverpkg=openSUSE-release

Create source repositories files

Create file OpenSUSE-inet.repo and OpenSUSE-local.repo in /etc/yum.repos.d directory.

# touch /etc/yum.repos.d/OpenSUSE-inet.repo
# touch /etc/yum.repos.d/OpenSUSE-local.repo

Contents of OpenSUSE-inet.repo

[base]
name=OpenSUSE-$releasever - Base
baseurl=http://download.opensuse.org/distribution/$releasever/repo/oss/suse/
enabled=1
gpgcheck=0
gpgkey=file:///etc/path/to/file

[updates]
name=OpenSUSE-$releasever - Updates
baseurl=http://download.opensuse.org/update/$releasever/
enabled=1
gpgcheck=0
gpgkey=file:///path/to/file

Contents of OpenSUSE-local.repo (Optional and disabled by default - For installation using local repository/DVD):

[cd-media]
name=OpenSUSE-$releasever - Local
baseurl=file:///media/cdrom/
gpgcheck=0
enabled=0

Now the installation is done.

Posted on Thursday, January 07, 2010

1 Comment  Add new

HGDBA said...

Mr. Kartik,
can you please help to post the 11gR2 installation step for OpenSUSE as well?
There are many example in using RedHat/OEL/CentOS, but not many using SUSE or OpenSUSE.

thanks
Lie


Posted on Friday, July 30, 2010 04:32 PM


<< Home