Chinaunix首页 | 论坛 | 博客
  • 博客访问: 657876
  • 博文数量: 780
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4885
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:14
文章分类

全部博文(780)

文章存档

2008年(780)

我的朋友

分类: LINUX

2008-08-22 16:17:27


命令行工具往往比图形界面工具更快捷有效
包管理
安装包.........apt-getinstall.....................zypperinstall
................smartinstall
................yuminstall
删除包.........apt-getremove......................zypperremove
................smartremove
................yumremove|erase
搜索包.........apt-cachesearch....................zyppersearch
................smartsearch
................yumsearch
升级包.........apt-getupgrade......................zypperupdate
(update).......smartupgrade
................yumupgrade
升级包.........apt-getdist-upgrade
(upgrade)......yumupgrade
重新安装指定的包apt-get--reinstall\install............zypperinstall--force
................smartreinstall
安装本地包...yumlocalinstall
用本地包升级...yumlocalupdate
修复破损的依赖...apt-get--fix-broken
..............smartfix
下载指定的包..apt-get--download-only
..............smartdownload
删除无用的依赖apt-getremove-D
.................(注:原文是apt-getautoremove,这个命令不存在)
Fetchsourcepackageapt-getsource......................zyppersource-install
Satisfybuild-dependenciesapt-getbuild-dep
包加锁.........smartflag--setlock
...............
删除锁.........smartflag--removelock
Listallpackagelockrules.smartflag--showlock
............................./etc/apt/preferences
包信息管理
Getadumpof................apt-cachestats
thewholesystem.............smartstats
information

Showfullinfo...............apt-cacheshowpkg
forpackage(s)................apt-cacheshow..................zypperinfo
..............................smartinfo
..............................yumlistorinfo
显示有效的升级................apt-getupgrade->n
...............................yumlistupdates............zypperpatch-check(justforpatches)
...............................yumcheck-update
安装源管理
增加安装源......................smartchannel--add...........zypperservice-add
................................apt-cdromadd
刷新安装源.................apt-getupdate
..................................smartupdate................zypperrefresh
..................................yumcheck-update
列出全部源....................smartchannel--show.........zypperservice-list
删除源........................smartchannel--remove.......zypperservice-delete
删除全部源....................smartchannel--remove-all
修改源........................smartchannel--set
编辑源信息........................smartchannel--edit
禁用源............................smartchannel--disable....zyppermodifyrepo--disable
启用源..........................smartchannel--enable.........zyppermodifyrepo--enable
源改名..........................smartchannel--set........zypperservice-rename
Showmirrors.....................smartmirror--show

打开shell........................yumshell....................zyppershell
就写这么多吧。 下载本文示例代码
阅读(281) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~