Zypper 是 suse 和 openSUSE 发行版的命令行包管理。它用于安装、更新、搜索、移除包和管理仓库,执行各种查询等。Zypper 以 ZYpp 系统管理库(libzypp)作为后端。
# zypper repos -
# | Alias | Name | Enabled | GPG Check | Refresh --+-----------------------+-----------------------------------------------------+---------+-----------+-------- 1 | packman-repository | packman-repository | Yes | (r ) Yes | Yes 2 | google-chrome | google-chrome | Yes | (r ) Yes | Yes 3 | home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r ) Yes | No 4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r ) Yes | Yes 5 | repo-oss | openSUSE-leap/42.1-Oss | Yes | (r ) Yes | Yes 6 | repo-update | openSUSE-42.1-Update | Yes | (r ) Yes | Yes 7 | repo-update-non-oss | openSUSE-42.1-Update-Non-Oss | Yes | (r ) Yes | Yes
列出仓库及 URI。
# zypper lr -u -
# | Alias | Name | Enabled | GPG Check | Refresh | URI --+-----------------------+-----------------------------------------------------+---------+-----------+---------+--------------------------------------------------------------------------------- 1 | packman-repository | packman-repository | Yes | (r ) Yes | Yes | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/ 2 | google-chrome | google-chrome | Yes | (r ) Yes | Yes | http://dl.google.com/linux/chrome/rpm/stable/x86_64 3 | home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r ) Yes | No | http://download.opensuse.org/repositories/home:/lazka0:/ql-stable/openSUSE_42.1/ 4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/ 5 | repo-oss | openSUSE-leap/42.1-Oss | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/42.1/repo/oss/ 6 | repo-update | openSUSE-42.1-Update | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.1/oss/ 7 | repo-update-non-oss | openSUSE-42.1-Update-Non-Oss | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.1/non-oss/
通过优先级列出仓库。
# zypper lr -p -
# | Alias | Name | Enabled | GPG Check | Refresh | Priority --+-----------------------+-----------------------------------------------------+---------+-----------+---------+--------- 1 | packman-repository | packman-repository | Yes | (r ) Yes | Yes | 99 2 | google-chrome | google-chrome | Yes | (r ) Yes | Yes | 99 3 | home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r ) Yes | No | 99 4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r ) Yes | Yes | 99 5 | repo-oss | openSUSE-leap/42.1-Oss | Yes | (r ) Yes | Yes | 99 6 | repo-update | openSUSE-42.1-Update | Yes | (r ) Yes | Yes | 99 7 | repo-update-non-oss | openSUSE-42.1-Update-Non-Oss | Yes | (r ) Yes | Yes | 99
如何列出 Arch Linux 上已启用的仓库
基于 Arch Linux 的系统使用 pacman 包管理,因此我们可以使用 pacman 包管理获取这些信息。
(编辑:ASP站长网)
|