📜  yum install package with version - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:20.413000             🧑  作者: Mango

代码示例1
$ yum --showduplicates list httpd | expand

Available Packages
httpd.x86_64                        2.4.6-6.fc20                         fedora 
httpd.x86_64                        2.4.10-1.fc20                        updates

# To see what particular versions are available to you via yum you can use the --showduplicates switch. 
# It gives you a list like "package name.architecture version"

sudo yum install -

sudo yum install httpd-2.4.6-6
sudo yum install httpd-2.4.6-6.fc20.x86_64