3

yum install有没有办法知道使用命令将安装哪个版本的软件?

例如:

$ yum search zsh
Loaded plugins: fastestmirror
=== Matched: zsh ===
zsh.x86_64 : A powerful interactive shell

在这种情况下,我怎么知道zshif 我 type的版本yum install zsh.x86_64

4

3 回答 3

7

yum list zsh也有效:

[ 16:27 root@host ~ ]# yum list zsh
Loaded plugins: presto, refresh-packagekit
Available Packages
zsh.i686                                                    4.3.10-6.fc13                                                    updates


[ 16:27 root@host ~ ]# yum info zsh
Loaded plugins: presto, refresh-packagekit
Available Packages
Name        : zsh
Arch        : i686
Version     : 4.3.10
Release     : 6.fc13
Size        : 2.1 M
Repo        : updates
Summary     : A powerful interactive shell
URL         : http://zsh.sunsite.dk/
License     : BSD
Description : The zsh shell is a command interpreter usable as an interactive login
            : shell and as a shell script command processor.  Zsh resembles the ksh
            : shell (the Korn shell), but includes many enhancements.  Zsh supports
            : command line editing, built-in spelling correction, programmable
            : command completion, shell functions (with autoloading), a history
            : mechanism, and more.

[ 16:27 root@host ~ ]# yum provides zsh
Loaded plugins: presto, refresh-packagekit
zsh-4.3.10-5.fc13.i686 : A powerful interactive shell
Repo        : fedora
Matched from:



zsh-4.3.10-6.fc13.i686 : A powerful interactive shell
Repo        : updates
Matched from:

百胜

于 2011-10-13T23:28:13.137 回答
4

使用 yum info 获取有关特定软件包的更多信息:

yum info zsh
于 2011-10-13T23:25:34.853 回答
-1
yum -h   # to list yum options
yum info zsh    # lots of info
yum list zsh    # brief info (usually all I need: thanks @chown)
于 2013-02-06T10:59:22.860 回答