SuSE下smart图文教程(探讨)
SuSE下smart图文教程(探讨)作者:潇湘馆主
首先简要介绍一下smart的作用
smart是一个软件包管理器,兼容rpm与deb包管理模式,横跨多个主流发行版,包括SuSE,FC,Debian都可以使用,而且软件源也使用各自的,因而在源的广度上很有优势。
我之所以关注smart,还是因为SuSE下的yast加源太慢,而且总是出一些莫名其妙的问题。而smart号称对依赖性问题解决更为成功,而且,更为重要的是,smart只依赖一个包组:rpm-python,意味着它的出色的灵活性,包括脱离于图形独立运行。
好,闲话休提,到底如何,可不是我说出来的,大家可以从下文中得出自己的结论。
首先,介绍一下我的系统。
机器方面,Athlon XP 2000+,640MB DDR,VIA KT333,DVD-RW,非常古老的配置,是一台试验机
操作系统:SuSE 10.2 Alpha 2,KDE3.5.3
linyuzhu@linux-0k7f:~> uname -a
Linux linux-0k7f 2.6.16.20-2-default #1 Mon Jun 19 22:25:45 UTC 2006 i686 athlon i386 GNU/Linux
那么,让我们看看从那里可以下载到smart
http://labix.org/smart
这是smart项目的主页,在这里,我们可以找到smart最新版的源码和针对各操作系统的二进制包,由于只对rpm-python有要求,估计所有SuSE用户都可以轻松安装。
对于SuSE的rpm包在这里:
http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=/System/smart
请根据系统类型和处理器架构选择下载
根据我的情况,我下载了这些:
version 0.42 release 1
RPMsmart-0.42-1.guru.suse101.i686.rpm536.66 KBMon 26 June 2006
RPMsmart-addons-0.42-1.guru.suse101.i686.rpm9.04 KBMon 26 June 2006
RPMsmart-debuginfo-0.42-1.guru.suse101.i686.rpm332.06 KBMon 26 June 2006
RPMsmart-gui-0.42-1.guru.suse101.i686.rpm75.38 KBMon 26 June 2006
RPMsmart-ksmarttray-0.42-1.guru.suse101.i686.rpm27.88 KBMon 26 June 2006
注意,其中smart-gui是smart的图形前端,运行于GTK,并非必须但很好用
安装smart和smart-gui就可以了,直接下载,然后rpm -uvh *.rpm不必赘言。
注意,smart之可以从root用户启动,这很好理解。
可以在终端中smart --gui,亦可在菜单中系统--配置--smart(包管理器)
那好,对于我等suse用户而言,要的就是简单,所以下面操作以gui方式进行
http://www.linuxfans.org/nuke/modules/Forums/files/01_391.jpg
SuSE自动向你询问密码,别告诉我你忘记了
这是主界面,我已经加了两个源
http://www.linuxfans.org/nuke/modules/Forums/files/02_140.jpg
下面就说如何加源
在Edit中打开Channels,得到这个界面
http://www.linuxfans.org/nuke/modules/Forums/files/03_795.jpg
http://www.linuxfans.org/nuke/modules/Forums/files/04_178.jpg
点击New,自己加吧
http://www.linuxfans.org/nuke/modules/Forums/files/05_163.png
http://www.linuxfans.org/nuke/modules/Forums/files/06_160.png
http://www.linuxfans.org/nuke/modules/Forums/files/07_144.png
提供两个示范
http://www.linuxfans.org/nuke/modules/Forums/files/08_231.png
http://www.linuxfans.org/nuke/modules/Forums/files/09_574.png
在这里可以找到SuSE官方提供的诸多源:
http://susewiki.org/index.php?title=Finding_RPMs#YaST_Sources
YaST Sources
Note that sources marked as official can be modifed to use some international mirrors, often improving download speeds. Also ensure you are using the correct source for your version of SUSE
Base:
ftp://ftp.suse.com/pub/suse/i386/10.1/
ftp://ftp.suse.com/pub/suse/i386/10.0/
ftp://ftp.suse.com/pub/suse/i386/9.3/
ftp://ftp.suse.com/pub/suse/i386/9.2/
ftp://ftp.suse.com/pub/suse/i386/9.1/
ftp://ftp.suse.com/pub/suse/i386/9.0/
Official KDE:
KDE3:
http://software.opensuse.org/download/KDE:/KDE3/SUSE_Linux_10.1/
http://software.opensuse.org/download/KDE:/KDE3/SUSE_Linux_10.0/
http://software.opensuse.org/download/KDE:/KDE3/SUSE_Linux_9.3/
KDE4:
http://software.opensuse.org/download/KDE:/KDE4/SUSE_Linux_10.1/
http://software.opensuse.org/download/KDE:/KDE4/SUSE_Linux_10.0/
http://software.opensuse.org/download/KDE:/KDE4/SUSE_Linux_9.3/
Official GNOME:
ftp://ftp.suse.com/pub/suse/i386/supplementary/GNOME/update_for_10.1/yast-source/
ftp://ftp.suse.com/pub/suse/i386/supplementary/GNOME/update_for_10.0/yast-source/
ftp://ftp.suse.com/pub/suse/i386/supplementary/GNOME/update_for_9.3/yast-source/
ftp://ftp.suse.com/pub/suse/i386/supplementary/GNOME/update_for_9.2/yast-source/
ftp://ftp.suse.com/pub/suse/i386/supplementary/GNOME/update_for_9.1/yast-source/
ftp://ftp.suse.com/pub/suse/i386/supplementary/GNOME/update_for_9.0/yast-source/
Official "misc":
http://software.opensuse.org/download/KDE:/Backports/SUSE_Linux_10.1/
http://software.opensuse.org/download/KDE:/Backports/SUSE_Linux_10.0/
http://software.opensuse.org/download/KDE:/Backports/SUSE_Linux_9.3/
Packman:
"http" can be replaced with "ftp"; you can also use a mirror as described here
http://packman.iu-bremen.de/suse/10.1/
http://packman.iu-bremen.de/suse/10.0/
http://packman.iu-bremen.de/suse/9.3/
http://packman.iu-bremen.de/suse/9.2/
http://packman.iu-bremen.de/suse/9.1/
http://packman.iu-bremen.de/suse/9.0/
http://packman.iu-bremen.de/suse/8.2/
http://packman.iu-bremen.de/suse/8.1/
Guru:
"http" can be replaced with "ftp"
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.1/
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.0/
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/9.3/
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/9.2/
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/9.1/
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/9.0/
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/8.2/
RPMFind
http://fr2.rpmfind.net/linux/SuSE-Linux/i386/10.1/
http://fr2.rpmfind.net/linux/SuSE-Linux/i386/10.0/
http://fr2.rpmfind.net/linux/SuSE-Linux/i386/9.3/
http://fr2.rpmfind.net/linux/SuSE-Linux/i386/9.2/
http://fr2.rpmfind.net/linux/SuSE-Linux/i386/9.1/
http://fr2.rpmfind.net/linux/SuSE-Linux/i386/9.0/
Official x86_64:
ftp://ftp.suse.com/pub/suse/x86_64/9.3/
ftp://ftp.suse.com/pub/suse/x86_64/9.2/
ftp://ftp.suse.com/pub/suse/x86_64/9.1/
ftp://ftp.suse.com/pub/suse/x86_64/9.0/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/KDE/update_for_9.3/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/KDE/update_for_9.2/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/KDE/update_for_9.1/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/KDE/update_for_9.0/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/GNOME/update_for_9.3/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/GNOME/update_for_9.2/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/GNOME/update_for_9.1/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/GNOME/update_for_9.0/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/misc/update_for_9.3/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/misc/update_for_9.2/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/misc/update_for_9.1/yast-source/
ftp://ftp.suse.com/pub/suse/x86_64/supplementary/misc/update_for_9.0/yast-source/
Scorot rpms (i586 and x86_64):
"http" can be replaced with "ftp"
http://ftp.gwdg.de/pub/linux/misc/suser-scorot/suse92/
http://ftp.gwdg.de/pub/linux/misc/suser-scorot/suse93/
http://ftp.gwdg.de/pub/linux/misc/suser-scorot/suse100/
Others:
http://www.biolinux.org/soft/suse/9.1/
http://81.169.140.126/rpm/wesnoth/9.3/ (only Wesnoth, other versions found here)
SUSE 10.0 GM-Extra packages
ftp://ftp.uni-erlangen.de/pub/Linux/MIRROR.suse/pub/suse/i386/10.0/SUSE-Linux10.0-GM-Extra/
http://gd.tuwien.ac.at/linux/suse/suse.com/i386/10.0/SUSE-Linux10.0-GM-Extra/
Contributions by Robert Schiele:
http://pi3.informatik.uni-mannheim.de/~schiele/suse/10.0
usr-local-bin
ftp://ftp.gwdg.de/pub/linux/usr-local-bin/10.1
ftp://ftp.gwdg.de/pub/linux/usr-local-bin/10.0
另外,这里提供的脚本可以将yast中的设置自动转换为smart的channel
http://wiki.suselinuxsupport.de/wikka.php?wakka=smartscriptstoconvertsources
好,加好了源,点击File--Update Channels
http://www.linuxfans.org/nuke/modules/Forums/files/10_203.png
http://www.linuxfans.org/nuke/modules/Forums/files/11_766.png
好了,现在就可以体验smart的快捷了
http://www.linuxfans.org/nuke/modules/Forums/files/12_969.png
http://www.linuxfans.org/nuke/modules/Forums/files/13_232.png
注意,smart下载时是并行的,这就注定了他比常规下载快得多
http://www.linuxfans.org/nuke/modules/Forums/files/16_161.png 字体挺丑.... :lol: 继续加图 好贴。可惜n久没用suse了.............. 有够详细,学习中。。。
顺便BS一下fox哥哥~~~ :roll: :roll: 准备装个SUSE研究一下了 呵呵
连smart的都有了 好快哦,昨天才说要发这个,今天就出来了~~~ 谢谢各位捧场 :mrgreen::mrgreen::mrgreen: 都说了等待你的大作啊 潇湘馆主好厉害 :!:
页:
[1]