LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2233|回复: 6

SUSE包管理几种命令行工具比较

[复制链接]
发表于 2007-12-4 16:29:58 | 显示全部楼层 |阅读模式
命令行工具往往比图形界面工具更快捷有效
(原文 http://en.opensuse.org/Software_ ... and_Line_Comparison )
包管理  
安装包 ......... apt-get install ..................... zypper install
................ smart install
................ yum install
删除包 ......... apt-get remove ...................... zypper remove
................ smart remove
................ yum remove|erase
搜索包 ......... apt-cache search .................... zypper search
................ smart search
................ yum search
升级包 ......... apt-get upgrade ...................... zypper update
(update) ....... smart upgrade
................ yum upgrade
升级包 ......... apt-get dist-upgrade
(upgrade) ...... yum upgrade
重新安装指定的包 apt-get --reinstall\install ............ zypper install --force
................ smart reinstall
安装本地包 ... yum localinstall
用本地包升级 ... yum localupdate
修复破损的依赖 ... apt-get --fix-broken
.............. smart fix
下载指定的包 .. apt-get --download-only
.............. smart download
删除无用的依赖  apt-get remove -D
.................(注:原文是apt-get autoremove,这个命令不存在)
Fetch source package apt-get source ......................zypper source-install
Satisfy build-dependencies apt-get build-dep
包加锁 .........smart flag --set lock
...............
删除锁 .........smart flag --remove lock
List all package lock rules . smart flag --show lock
............................. /etc/apt/preferences
包信息管理
Get a dump of ................apt-cache stats         
the whole system .............smart stats
information

Show full info ............... apt-cache showpkg
for package(s) ................apt-cache show ..................zypper info
..............................smart info
..............................yum list or info
显示有效的升级 ................apt-get upgrade ->n
...............................yum list updates ............zypper patch-check (just for patches)
...............................yum check-update
安装源管理
增加安装源......................smart channel --add...........zypper service-add
................................apt-cdrom add
刷新安装源.................apt-get update
..................................smart update................zypper refresh
..................................yum check-update
列出全部源....................smart channel --show.........zypper service-list
删除源........................smart channel --remove.......zypper service-delete
删除全部源....................smart channel --remove-all
修改源........................smart channel --set
编辑源信息........................smart channel --edit
禁用源............................smart channel --disable....zypper modifyrepo --disable
启用源..........................smart channel --enable.........zypper modifyrepo --enable
源改名..........................smart channel --set........zypper service-rename
Show mirrors.....................smart mirror --show

打开shell ........................yum shell....................zypper shell
就写这么多吧。
发表于 2007-12-4 17:02:42 | 显示全部楼层
自己也研究过一段时间,但是半途中止。这篇文章讲的倒也挺详细。留名,做个记号吧。
回复 支持 反对

使用道具 举报

发表于 2007-12-4 23:05:52 | 显示全部楼层
学习了。昨天尝试一下zypper,确实比yast快。
回复 支持 反对

使用道具 举报

发表于 2007-12-4 23:11:11 | 显示全部楼层
呵呵,说smart而没有说它的shell模式的话,快感基本少掉了大半。

smart --shell

welcome to the sexy world
回复 支持 反对

使用道具 举报

发表于 2007-12-5 09:54:17 | 显示全部楼层
如果再仔细排版就完美了
回复 支持 反对

使用道具 举报

发表于 2007-12-6 00:57:31 | 显示全部楼层
偶喜欢 yum 和 yast
回复 支持 反对

使用道具 举报

发表于 2007-12-6 10:42:35 | 显示全部楼层
我10.1的时候经常用smart shell,确实不错
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表