Package-Management
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 ...
在手冊中,他們提到**“i”表示安裝了軟體包,而“v”表示安裝了不同的版本。但是,沒有提到“i+”**。
當我更新其中一個可用更新檔時,狀態會從**“v”變為“i+”**。這是否意味著安裝了軟體包的最後一個版本?
i+代表使用者安裝的軟體包,而i表示它是自動安裝的(例如作為其他軟體包的依賴項)。
我認為zypper手冊中也提到了這一點。
回答您的問題:是的,您已經安裝了最新版本。
乾杯