Zypper 包状态标志解释

Zypper 包状态标志解释

当我致力于在 Suse 机器上自动化修补过程时。我想更清楚地了解软件包状态生命周期。

首先,我尝试列出可用的补丁及其新版本,只需运行:

$ zypper list-updates
Loading repository data...
Warning: Repository 'NON OSS Update' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'OSS Update' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
S | Repository | Name          | Current Version      | Available Version    | Arch
--+------------+---------------+----------------------+----------------------+-------
v | OSS Update | libkmod2      | 17-16.1              | 17-19.1              | x86_64
v | OSS Update | libsgutils2-2 | 1.43+43.158502d-18.1 | 1.43+46.4b09c76-21.1 | x86_64
v | OSS Update | libssh2-1     | 1.4.3-19.6.1         | 1.4.3-19.9.1         | x86_64
v | OSS Update | libtasn1      | 4.9-3.1              | 4.9-6.1              | x86_64
v | OSS Update | libtasn1-6    | 4.9-3.1              | 4.9-6.1              | x86_64

可以看到状态是“v”

之后,我通过运行以下命令来检查已安装的软件包:

$ zypper packages --installed-only
Loading repository data...
Warning: Repository 'NON OSS Update' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'OSS Update' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
S  | Repository | Name                              | Version                         | Arch
---+------------+-----------------------------------+---------------------------------+-------
i  | OSS Update | aaa_base                          | 13.2+git20140911.61c1681-28.9.1 | x86_64
v  | OSS Update | aaa_base                          | 13.2+git20140911.61c1681-28.6.1 | x86_64
v  | OSS Update | aaa_base                          | 13.2+git20140911.61c1681-28.3.1 | x86_64
v  | OSS        | aaa_base                          | 13.2+git20140911.61c1681-27.2   | x86_64
i+ | OSS Update | acl                               | 2.2.52-11.3.1                   | x86_64
v  | OSS        | acl                               | 2.2.52-10.15                    | x86_64
i  | OSS Update | bash                              | 4.3-83.15.1                     | x86_64
v  | OSS Update | bash                              | 4.3-83.12.1                     | x86_64
v  | OSS Update | bash                              | 4.3-83.9.1                      | x86_64
v  | OSS Update | bash                              | 4.3-83.6.1                      | x86_64
v  | OSS Update | bash                              | 4.3-83.3.1                      | x86_64
v  | OSS        | bash                              | 4.3-82.6                        | x86_64

...

他们在手册中提到“我”意味着该软件包已安装“v”意味着安装了不同的版本。但是,没有提到任何关于“我+”

当我更新可用补丁之一时,状态从“v”“我+”。这是否意味着安装了该软件包的最新版本?

答案1

我+代表用户安装的软件包,而意味着它是自动安装的(例如作为其他包的依赖项)。

我想zypper手册中也提到了这一点。

回答您的问题:是的,您已经安装了最新版本。

干杯

相关内容