红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > SuSE

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

发布时间:2008-01-30 12:58:02来源:红联作者:Procedures
命令行工具往往比图形界面工具更快捷有效
包管理
安装包 ......... 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
就写这么多吧。
文章评论

共有 0 条评论