| 如果你不确定包的全名也不要担心。你可以使用 zypper附带的se或search子命令并提供查找字符串来查找包。 root@kerneltalks # zypper se lvmRefreshing service 'SMT-http_smt-ec2_susecloud_net'.Refreshing service 'cloud_update'.Loading repository data...Reading installed packages... S  | Name          | Summary                      | Type---|---------------|------------------------------|-----------   | libLLVM       | Libraries for LLVM           | package   | libLLVM-32bit | Libraries for LLVM           | package   | llvm          | Low Level Virtual Machine    | package   | llvm-devel    | Header Files for LLVM        | package   | lvm2          | Logical Volume Manager Tools | srcpackagei+ | lvm2          | Logical Volume Manager Tools | package   | lvm2-devel    | Development files for LVM2   | package 
 在上述示例中我们查找了 lvm字符串并得到了如上输出列表。你能在zypper install/remove/update命令中使用Name字段的名字。 使用 zypper 检查已安装包信息你能够使用 zypper检查已安装包的详细信息。info或if子命令将列出已安装包的信息。它也可以显示未安装包的详细信息,在该情况下,Installed参数将返回No值。 root@kerneltalks # zypper info rsyncRefreshing service 'SMT-http_smt-ec2_susecloud_net'.Refreshing service 'cloud_update'.Loading repository data...Reading installed packages...  Information for package rsync:------------------------------Repository     : SLES12-SP3-UpdatesName           : rsyncVersion        : 3.1.0-13.10.1Arch           : x86_64Vendor         : SUSE LLC <https://www.suse.com/>Support Level  : Level 3Installed Size : 625.5 KiBInstalled      : YesStatus         : up-to-dateSource package : rsync-3.1.0-13.10.1.srcSummary        : Versatile tool for fast incremental file transferDescription    :    Rsync is a fast and extraordinarily versatile file  copying  tool. It can copy    locally, to/from another host over any remote shell, or to/from a remote rsync    daemon. It offers a large number of options that control every aspect of its    behavior and permit very flexible specification of the set of files to be    copied. It is famous for its delta-transfer algorithm, which reduces the amount    of data sent over the network by sending only the differences between the    source files and the existing files in the destination. Rsync is widely used    for backups and mirroring and as an improved copy command for everyday use.
 使用 zypper 列出仓库(编辑:南平站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |