Opensuse

Zypper:顯示軟體包的所有可安裝版本

  • May 17, 2019

不幸的是,一個 rpm ( apache2-utils) 在一台伺服器上有兩個源。

如果我嘗試更新它,則會收到以下消息:

sle-server# zypper in apache2-utils
Loading repository data...
Reading installed packages...
'apache2-utils' is already installed.
There is an update candidate for 'apache2-utils', 
but it comes from a repository with a lower priority. 
Use 'zypper install apache2-utils-2.4.34-175.1.x86_64' to install this candidate.
Resolving package dependencies...

Nothing to do.

現在我想知道可以安裝哪些版本:

sle-server# zypper info apache2-utils
Loading repository data...
Reading installed packages...


Information for package apache2-utils:
--------------------------------------
Repository     : ES standard patch baseline 4Q2018
Name           : apache2-utils                    
Version        : 2.4.23-29.27.2                   
Arch           : x86_64                           
Vendor         : SUSE LLC <https://www.suse.com/> 
Support Level  : unknown                          
Installed Size : 221.6 KiB                        
Installed      : Yes (automatically)              
Status         : up-to-date                       
Source package : apache2-2.4.23-29.27.2.src       
Summary        : Apache 2 utilities               
Description    :                                  
   Utilities provided by the Apache 2 Web Server project which are useful
   to administrators of web servers in general.

我怎樣才能在命令行上看到這個包的所有可安裝版本(沒有 yast)?

zypper se -s apache2-utils
Loading repository data...
Reading installed packages...

S | Name          | Type    | Version        | Arch   | Repository                       
--+---------------+---------+----------------+--------+----------------------------------
i | apache2-utils | package | 2.4.23-29.27.2 | x86_64 | ES standard patch baseline 4Q2018
v | apache2-utils | package | 2.4.34-175.1   | x86_64 | SLES_12.3_TBZ-PARIV              

引用自:https://serverfault.com/questions/967739