Skip to content

Instantly share code, notes, and snippets.

@rudisimo
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudisimo/bd5bfb777f9127a0af1b to your computer and use it in GitHub Desktop.
Save rudisimo/bd5bfb777f9127a0af1b to your computer and use it in GitHub Desktop.
PHP 5.2 Downgrade Script
#!/bin/sh
# Script to install PHP 5.2 from 9.10 on 10.04
# And pin it so it does not get updated
for PKG in `dpkg -l | grep php | awk '{print $2}'`
do
echo "$PKG hold" | dpkg --set-selections
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment