Zypper:显示软件包的所有可安装版本

Zypper:显示软件包的所有可安装版本

不幸的是,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)?

答案1

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              

相关内容