加入收藏 | 设为首页 | 会员中心 | 我要投稿 青岛站长网 (https://www.0532zz.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

12条实用的zypper命令范例

发布时间:2018-12-18 05:40:34 所属栏目:Windows 来源:Kerneltalks
导读:zypper 是 Suse Linux 系统的包和补丁管理器,你可以根据下面的 12 条附带输出示例的实用范例来学习 zypper 命令的使用。 Suse Linux 使用 zypper 进行包管理,其是一个由 ZYpp 包管理引擎提供的包管理系统。在此篇文章中我们将分享 12 条附带输出示例的实

如果你不确定包的全名也不要担心。你可以使用 zypper 附带的 sesearch 子命令并提供查找字符串来查找包。

  1. root@kerneltalks # zypper se lvm
  2. Refreshing service 'SMT-http_smt-ec2_susecloud_net'.
  3. Refreshing service 'cloud_update'.
  4. Loading repository data...
  5. Reading installed packages...
  6. S | Name | Summary | Type
  7. ---|---------------|------------------------------|-----------
  8. | libLLVM | Libraries for LLVM | package
  9. | libLLVM-32bit | Libraries for LLVM | package
  10. | llvm | Low Level Virtual Machine | package
  11. | llvm-devel | Header Files for LLVM | package
  12. | lvm2 | Logical Volume Manager Tools | srcpackage
  13. i+ | lvm2 | Logical Volume Manager Tools | package
  14. | lvm2-devel | Development files for LVM2 | package

在上述示例中我们查找了 lvm 字符串并得到了如上输出列表。你能在 zypper install/remove/update 命令中使用 Name 字段的名字。

使用 zypper 检查已安装包信息

你能够使用 zypper 检查已安装包的详细信息。infoif 子命令将列出已安装包的信息。它也可以显示未安装包的详细信息,在该情况下,Installed 参数将返回 No 值。

  1. root@kerneltalks # zypper info rsync
  2. Refreshing service 'SMT-http_smt-ec2_susecloud_net'.
  3. Refreshing service 'cloud_update'.
  4. Loading repository data...
  5. Reading installed packages...
  6. Information for package rsync:
  7. ------------------------------
  8. Repository : SLES12-SP3-Updates
  9. Name : rsync
  10. Version : 3.1.0-13.10.1
  11. Arch : x86_64
  12. Vendor : SUSE LLC <https://www.suse.com/>
  13. Support Level : Level 3
  14. Installed Size : 625.5 KiB
  15. Installed : Yes
  16. Status : up-to-date
  17. Source package : rsync-3.1.0-13.10.1.src
  18. Summary : Versatile tool for fast incremental file transfer
  19. Description :
  20. Rsync is a fast and extraordinarily versatile file copying tool. It can copy
  21. locally, to/from another host over any remote shell, or to/from a remote rsync
  22. daemon. It offers a large number of options that control every aspect of its
  23. behavior and permit very flexible specification of the set of files to be
  24. copied. It is famous for its delta-transfer algorithm, which reduces the amount
  25. of data sent over the network by sending only the differences between the
  26. source files and the existing files in the destination. Rsync is widely used
  27. for backups and mirroring and as an improved copy command for everyday use.

使用 zypper 列出仓库

(编辑:青岛站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!