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> Type of package (package, patch, pattern, product). Default: package. -n, –name Select packages by plain name, not by capability. -C, –capability Select packages by capability. –debug-solver Create solver test case for debugging. -R, –no-force-resolution Do not 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, do not actually remove.
例子3:打开zypper shell/会话
复制代码
代码如下:
linux-xa3t:~ # zypper sh zypper>
或
复制代码
代码如下:
linux-xa3t:~ # zypper shell zypper>
例子4:列出已定义的仓库
复制代码
代码如下:
linux-xa3t:~ # zypper repos
或
复制代码
代码如下:
linux-xa3t:~ # zypper lr
4.1) 以表格的形式列出仓库的URI
4.2) 以优先级列出仓库
复制代码
代码如下:
linux-xa3t:~ # zypper lr -p
例子5:刷新仓库
复制代码
代码如下:
linux-xa3t:~ # zypper ref Repository \’openSUSE-13.1-Non-Oss\’ is up to date. Repository \’openSUSE-13.1-Oss\’ is up to date. Repository \’openSUSE-13.1-Update\’ is up to date. Repository \’openSUSE-13.1-Update-Non-Oss\’ is up to date. All repositories have been refreshed.