Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

yum install package with version

$ 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 <package name>-<version info>

sudo yum install httpd-2.4.6-6
sudo yum install httpd-2.4.6-6.fc20.x86_64
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #yum #install #package #version
ADD COMMENT
Topic
Name
1+9 =