有些程序需要安装旧版的时候,如何查看源包含的程序的版本?
以httpd为例:

yum --showduplicates list httpd | expand

输出结果:

Loaded plugins: fastestmirror, langpacks, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: mirror.steadfast.net
* rpmfusion-free: csc.mcs.sdsmt.edu
* rpmfusion-free-updates: csc.mcs.sdsmt.edu
* rpmfusion-nonfree: csc.mcs.sdsmt.edu
* rpmfusion-nonfree-updates: csc.mcs.sdsmt.edu
* updates: mirror.steadfast.net
Available Packages
httpd.x86_64 2.4.6-6.fc20 fedora
httpd.x86_64 2.4.10-1.fc20 updates

则安装指令的示例:

yum install httpd-2.4.6-6.fc20.x86_64

Related Posts: CentOS 列出app可安装版本 :