In a Shell scripts, check version of installed package, make a decision based on output
- by DJDarkViper
Looking to write a cross distro / cross version shell script that makes sure a forced version of PHP is installed
Example: Ubuntu 12.04 has 5.3, Ubuntu 13.10 has 5.5, Debian 7 has 5.4
I need this script, when run on a distro that has an old version of PHP, to update the repo to point to a package for 5.4, and if the distro has too new of a…