Created
January 20, 2011 20:01
-
-
Save patcoll/788526 to your computer and use it in GitHub Desktop.
php52-ubuntu-lucid.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed s/lucid/karmic/g /etc/apt/sources.list | tee /etc/apt/sources.list.d/karmic.list | |
aptitude update -y | |
cat > /etc/apt/preferences.d/php <<heredoc | |
Package: php5 | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-cli | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-cgi | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-mysql | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-common | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: libapache2-mod-php5 | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-curl | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-imap | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-mcrypt | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php-apc | |
Pin: version 3.0.* | |
Pin-Priority: 991 | |
Package: php-gd | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-gd | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-dev | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-api | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php-pear | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
Package: php5-pear | |
Pin: version 5.2.* | |
Pin-Priority: 991 | |
heredoc | |
# then aptitude install all the above pkgs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment