zypper 通过 in 或 install 子命令来在你的系统上安装包。它的用法与 yum 软件包安装 相同。你只需要提供包名作为参数,包管理器(此处是 zypper )就会处理所有的依赖并与你指定的包一并安装。
# zypper install telnet Refreshing service 'SMT-http_smt-ec2_susecloud_net'. Refreshing service 'cloud_update'. Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: telnet 1 new package to install. Overall download size: 51.8 KiB. Already cached: 0 B. After the operation, additional 113.3 KiB will be used. Continue? [y/n/...? shows all options] (y): y Retrieving package telnet-1.2-165.63.x86_64 (1/1), 51.8 KiB (113.3 KiB unpacked) Retrieving: telnet-1.2-165.63.x86_64.rpm .........................................................................................................................[done] Checking for file conflicts: .....................................................................................................................................[done] (1/1) Installing: telnet-1.2-165.63.x86_64 .......................................................................................................................[done]
以上是我们安装 telnet 包时的输出,供你参考。
推荐阅读:在 YUM 和 APT 系统中安装包
如何使用 zypper 移除包
(编辑:ASP站长网)
|