Install Specific Package Versions with Yum and Apt
Apt-based:
# Check available versions
apt-cache madison <package>
# Install package by version
apt-get install <package>=<version> -V
Yum-based:
# Check available versions
yum list <package> --showduplicates
# Install package by version
yum install <package>-<version>