gpt4 book ai didi

linux - 使用yum install命令如何获取软件的版本号?

转载 作者:太空狗 更新时间:2023-10-29 11:26:33 30 4
gpt4 key购买 nike

有什么方法可以知道使用 yum install 命令会安装哪个版本的软件?

例如:

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

在这种情况下,如果我输入yum install zsh.x86_64,我怎么知道zsh的版本?

最佳答案

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

关于linux - 使用yum install命令如何获取软件的版本号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7761543/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com