linux-xa3t:~ # zypper help remove remove (rm) [options] <capability> ...
Remove packages with specified capabilities. A capability is NAME[.ARCH][OP<VERSION>], where OP is one of <, <=, =, >=, >.
Command options: -r, --repo <alias|#|URI> Load only the specified repository. -t, --type <type> Typeof package (package, patch, pattern, product).
Default: package. -n, --name Select packages by plain name, notby capability. -C, --capability Select packages by capability. --debug-solver Create solver test casefor debugging. -R, --no-force-resolution Donot force the solver to find solution,let it ask. --force-resolution Force the solver to find a solution (even an aggressive one). -u, --clean-deps Automatically remove unneeded dependencies. -U, --no-clean-deps No automatic removal of unneeded dependencies. -D, --dry-run Test the removal, donot actually remove.
例子3:打开zypper shell/会话
1 2 3
linux-xa3t:~ # zypper sh zypper>
或
1 2 3
linux-xa3t:~ # zypper shell zypper>
例子4:列出已定义的仓库
1 2
linux-xa3t:~ # zypper repos
或
1 2
linux-xa3t:~ # zypper lr
4.1) 以表格的形式列出仓库的URI
4.2) 以优先级列出仓库
1 2
linux-xa3t:~ # zypper lr -p
例子5:刷新仓库
1 2 3 4 5 6 7
linux-xa3t:~ # zypper ref Repository 'openSUSE-13.1-Non-Oss'is up todate. Repository 'openSUSE-13.1-Oss'is up todate. Repository 'openSUSE-13.1-Update'is up todate. Repository 'openSUSE-13.1-Update-Non-Oss'is up todate. All repositories have been refreshed.