使用yum install命令如何获取软件版本?

发布于 2024-12-09 21:26:37 字数 269 浏览 5 评论 0原文

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

例如:

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

这样的话,如果输入yum install zsh.x86_64,如何知道zsh的版本呢?

Is there any way to know which version of the software will be installed using yum install command?

For example:

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

In this case, how can I know the version of zsh if I type yum install zsh.x86_64?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

还给你自由 2024-12-16 21:26:37

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:

man yum

yum list zsh also works:

[ 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:

man yum

你的心境我的脸 2024-12-16 21:26:37

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

yum info zsh

Use yum info to get more info about a particular package:

yum info zsh
带刺的爱情 2024-12-16 21:26:37
yum -h   # to list yum options
yum info zsh    # lots of info
yum list zsh    # brief info (usually all I need: thanks @chown)
yum -h   # to list yum options
yum info zsh    # lots of info
yum list zsh    # brief info (usually all I need: thanks @chown)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文