设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 数据 手机 公司
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

如何列出在Linux上已启用/激活的仓库(3)

发布时间:2018-10-30 05:19 所属栏目:117 来源:Prakash Subramanian
导读:Zypper 是 suse 和 openSUSE 发行版的命令行包管理。它用于安装、更新、搜索、移除包和管理仓库,执行各种查询等。Zypper 以 ZYpp 系统管理库(libzypp)作为后端。 # zypper repos # | Alias | Name | Enabled | G

Zypper 是 suse 和 openSUSE 发行版的命令行包管理。它用于安装、更新、搜索、移除包和管理仓库,执行各种查询等。Zypper 以 ZYpp 系统管理库(libzypp)作为后端。

  1. # zypper repos
  2.  
  3. # | Alias | Name | Enabled | GPG Check | Refresh
  4. --+-----------------------+-----------------------------------------------------+---------+-----------+--------
  5. 1 | packman-repository | packman-repository | Yes | (r ) Yes | Yes
  6. 2 | google-chrome | google-chrome | Yes | (r ) Yes | Yes
  7. 3 | home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r ) Yes | No
  8. 4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r ) Yes | Yes
  9. 5 | repo-oss | openSUSE-leap/42.1-Oss | Yes | (r ) Yes | Yes
  10. 6 | repo-update | openSUSE-42.1-Update | Yes | (r ) Yes | Yes
  11. 7 | repo-update-non-oss | openSUSE-42.1-Update-Non-Oss | Yes | (r ) Yes | Yes

列出仓库及 URI。

  1. # zypper lr -u
  2.  
  3. # | Alias | Name | Enabled | GPG Check | Refresh | URI
  4. --+-----------------------+-----------------------------------------------------+---------+-----------+---------+---------------------------------------------------------------------------------
  5. 1 | packman-repository | packman-repository | Yes | (r ) Yes | Yes | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/
  6. 2 | google-chrome | google-chrome | Yes | (r ) Yes | Yes | http://dl.google.com/linux/chrome/rpm/stable/x86_64
  7. 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/
  8. 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/
  9. 5 | repo-oss | openSUSE-leap/42.1-Oss | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/42.1/repo/oss/
  10. 6 | repo-update | openSUSE-42.1-Update | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.1/oss/
  11. 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/

通过优先级列出仓库。

  1. # zypper lr -p
  2.  
  3. # | Alias | Name | Enabled | GPG Check | Refresh | Priority
  4. --+-----------------------+-----------------------------------------------------+---------+-----------+---------+---------
  5. 1 | packman-repository | packman-repository | Yes | (r ) Yes | Yes | 99
  6. 2 | google-chrome | google-chrome | Yes | (r ) Yes | Yes | 99
  7. 3 | home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r ) Yes | No | 99
  8. 4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r ) Yes | Yes | 99
  9. 5 | repo-oss | openSUSE-leap/42.1-Oss | Yes | (r ) Yes | Yes | 99
  10. 6 | repo-update | openSUSE-42.1-Update | Yes | (r ) Yes | Yes | 99
  11. 7 | repo-update-non-oss | openSUSE-42.1-Update-Non-Oss | Yes | (r ) Yes | Yes | 99

如何列出 Arch Linux 上已启用的仓库

基于 Arch Linux 的系统使用 pacman 包管理,因此我们可以使用 pacman 包管理获取这些信息。

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读