安装包管理

来源:互联网 发布:淘宝差评多长时间生效 编辑:程序博客网 时间:2024/05/15 21:39
阿里云的suse好像只有zypper

命令行工具往往比图形界面工具更快捷有效

包管理

安装包 .........apt-get install ..................... zypper install

................ smartinstall

................ yuminstall

删除包 .........apt-get remove ...................... zypper remove

................ smartremove

................ yumremove|erase

搜索包 .........apt-cache search .................... zypper search

................ smartsearch

................ yumsearch

升级包 .........apt-get upgrade ...................... zypper update

(update)....... smart upgrade

................ yumupgrade

升级包 .........apt-get dist-upgrade

(upgrade)...... yum upgrade

重新安装指定的包apt-get --reinstall\install ............ zypper install--force

................ smartreinstall

安装本地包 ... yumlocalinstall

用本地包升级 ... yumlocalupdate

修复破损的依赖 ...apt-get --fix-broken

..............smart fix

下载指定的包 ..apt-get --download-only

..............smart download

删除无用的依赖 apt-getremove -D

.................(注:原文是apt-getautoremove,这个命令不存在)

Fetch sourcepackage apt-get source ......................zyppersource-install

Satisfybuild-dependencies apt-get build-dep

包加锁.........smart flag --set lock

...............

删除锁.........smart flag --remove lock

List allpackage lock rules . smart flag --show lock

............................./etc/apt/preferences

包信息管理

Get a dump of................apt-cache stats

the wholesystem .............smart stats

information


Show full info............... apt-cache showpkg

for package(s)................apt-cache show ..................zypper info

..............................smartinfo

..............................yumlist or info

显示有效的升级................apt-get upgrade ->n

...............................yumlist updates ............zypper patch-check (just forpatches)

...............................yumcheck-update

安装源管理

增加安装源......................smartchannel --add...........zypper service-add

................................apt-cdromadd

刷新安装源.................apt-getupdate

..................................smartupdate................zypper refresh

..................................yumcheck-update

列出全部源....................smartchannel --show.........zypper service-list

删除源........................smartchannel --remove.......zypper service-delete

删除全部源....................smartchannel --remove-all

修改源........................smartchannel --set

编辑源信息........................smartchannel --edit

禁用源............................smartchannel --disable....zypper modifyrepo --disable

启用源..........................smartchannel --enable.........zypper modifyrepo --enable

源改名..........................smartchannel --set........zypper service-rename

Showmirrors.....................smart mirror --show


自动卸载多余的包apt-get autoremove


打开shell........................yum shell....................zyppershell

就写这么多吧
0 0