找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

OpenSUSE Smart HOWTO

2009-12-20 13:45| 发布者: admin| 查看: 69| 评论: 0|原作者: 云天河

This article will tell you how to install SMART as an alternative to SUSE 10.1 own packagemanger/update system.
Smart has two requirements, besides python (that should be
always installed by default anyway), that's rpm-python (RPM bindings
for python) and python-elementtree (an API for quick access to XML
parsing).
Neither are installed by default, so you will have to pull them down first.
Let's assume that your current zmd/yast2 setup isn't working
correctly, and do it the low-level way.
After opening a shell and having switched to the root user, do this to
install the rpm-python and python-elementtree packages from Factory:
for 32 bit systems:
rpm -ihv
ftp://ftp.belnet.be/mirrors/ftp.opensuse.org/distribution/SL-10.1/inst-source/suse/i586/rpm-python-*.rpm
rpm -ihv
ftp://ftp.belnet.be/mirrors/ftp.opensuse.org/distribution/SL-10.1/inst-source/suse/i586/python-elementtree-*.rpm
(note that the whole command is supposed to be a single line,
just splitted for the sake of readability, but you can still copy/paste
those lines as they are in a root shell)
for 64 bit systems:
Note that if you have a 64bit system (the command "uname -m" shows "x86_64"), then use the following commands instead:
rpm -ihv
ftp://ftp.belnet.be/mirrors/ftp.opensuse.org/distribution/SL-10.1/inst-source/suse/x86_64/rpm-python-*.rpm
rpm -ihv
ftp://ftp.belnet.be/mirrors/ftp.opensuse.org/distribution/SL-10.1/inst-source/suse/x86_64/python-elementtree-*.rpm
Installing smart
Now that we have rpm-python installed, let's grab smart
Go to one of these:
*
http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=System/smart
*
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/packages/System/smart/
*
http://ftp.skynet.be/pub/suser-guru/rpm/packages/System/smart/
(the latter should be the fastest)
And pick the URL of the latest smart package for 10.1 and your architecture (i686 or x86_64), e.g. this one for 32bit:
http://ftp.skynet.be/pub/suser-guru/rpm/packages/System/smart/smart-0.42-6.guru.suse101.i686.rpm
Or this one for 64bit:
http://ftp.skynet.be/pub/suser-guru/rpm/packages/System/smart/smart-0.42-6.guru.suse101.x86_64.rpm
Pass that to rpm -ivh in a root shell, like this for 32 bit:
rpm -ihv
http://ftp.skynet.be/pub/suser-guru/rpm/packages/System/smart/smart-0.42-6.guru.suse101.i686.rpm
or like this for 64bit:
rpm -ihv
http://ftp.skynet.be/pub/suser-guru/rpm/packages/System/smart/smart-0.42-6.guru.suse101.x86_64.rpm
From release 0.41-24 and 0.42-1 onwards, my smart RPM comes
pre-configured with all the channels you need (main repository, online
updates, non-OSS repository, my own "guru" repository, packman, ...),
including the correct repository URLs and mirrors for 10.1.
Another nice tutorial can be found here, written by sPiN:
http://spinink.net/2006/05/20/installing-smart-package-manager/
Post installation
After installing smart, you have to run smart update once to
have it download the metadata for the configured repositories.
When you run it the first time, it will prompt you on whether you want
to include preconfigured channels or not (it asks for every channel).
Note that as of version/release 0.41-25 (or 0.42-*) on, the package
also includes preconfigured channels for the latest wine,
firefox/thunderbird/... updates and the supplementary KDE repository,
but those are disabled by default.
From there on, if you also want to install the graphical user interface for smart:
smart update
smart install smart-gui
If you also want to enable e.g. the supplementary KDE repository, do this:
smart channel --enable suse-kde
smart update suse-kde
You get a list of all configured channels with the following command:
smart channel --show





最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 07:22 , Processed in 0.121713 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部