How to install and setup Yum in OpenSUSE 11.1

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:

ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/babelworx:/tg2/openSUSE_11.1/x86%3Cbr%20/%3E_64/python-sqlite2-2.4.1-2.1.x86_64.rpm

http://rpm.pbone.net/index.php3/stat/4/idpl/20883745/dir/opensuse/com/yum-3.4.3-6.1.x86_64.rpm.html

http://yum.baseurl.org/download/3.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.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值