| 使用 list-patches或lp子命令来显示你的 Suse Linux 系统需要被应用的所有可用补丁。 root@kerneltalks # zypper lpRefreshing service 'SMT-http_smt-ec2_susecloud_net'.Refreshing service 'cloud_update'.Loading repository data...Reading installed packages... Repository                        | Name                                     | Category    | Severity  | Interactive | Status | Summary                                 ----------------------------------|------------------------------------------|-------------|-----------|-------------|--------|------------------------------------------------------------------------------------SLE-Module-Containers12-Updates   | SUSE-SLE-Module-Containers-12-2018-273   | security    | important | ---         | needed | Version update for docker, docker-runc, containerd, golang-github-docker-libnetworkSLE-Module-Containers12-Updates   | SUSE-SLE-Module-Containers-12-2018-62    | recommended | low       | ---         | needed | Recommended update for sle2docker       SLE-Module-Public-Cloud12-Updates | SUSE-SLE-Module-Public-Cloud-12-2018-268 | recommended | low       | ---         | needed | Recommended update for python-ecdsa     SLES12-SP3-Updates                | SUSE-SLE-SERVER-12-SP3-2018-116          | security    | moderate  | ---         | needed | Security update for rsync               ---- output clipped ----SLES12-SP3-Updates                | SUSE-SLE-SERVER-12-SP3-2018-89           | security    | moderate  | ---         | needed | Security update for perl-XML-LibXML     SLES12-SP3-Updates                | SUSE-SLE-SERVER-12-SP3-2018-90           | recommended | low       | ---         | needed | Recommended update for lvm2              Found 37 applicable patches:37 patches needed (18 security patches)
 使用相应的表头可以很好地组织输出。你可以轻松地找出并根据情况计划你的补丁更新。我们能看到在我们的系统中,37 个可用补丁中有 18 个是安全补丁,需要被高优先级应用! 你可以通过发出 zypper patch命令安装所有需要的补丁。 如何使用 zypper 更新包要使用 zypper更新包,使用update或up子命令后接包名。在上述列出的更新命令中,我们知道在我们的服务器上rsync包更新可用。让我们现在来更新它吧! root@kerneltalks # zypper update rsyncRefreshing service 'SMT-http_smt-ec2_susecloud_net'.Refreshing service 'cloud_update'.Loading repository data...Reading installed packages...Resolving package dependencies... The following package is going to be upgraded:  rsync 1 package to upgrade.Overall download size: 325.2 KiB. Already cached: 0 B. After the operation, additional 64.0 B will be used.Continue? [y/n/...? shows all options] (y): yRetrieving package rsync-3.1.0-13.10.1.x86_64                                                                                      (1/1), 325.2 KiB (625.5 KiB unpacked)Retrieving: rsync-3.1.0-13.10.1.x86_64.rpm .......................................................................................................................[done]Checking for file conflicts: .....................................................................................................................................[done](1/1) Installing: rsync-3.1.0-13.10.1.x86_64 .....................................................................................................................[done]
 在 Suse Linux 上使用 zypper 查找包(编辑:南平站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |