Created
May 23, 2010 03:36
-
-
Save collegeman/410611 to your computer and use it in GitHub Desktop.
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
# remove all php packge | |
sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "` | |
sudo su | |
# use karmik for php pakage | |
echo -e "Package: php5\nPin: release a=karmic\nPin-Priority: 991\n" >> /etc/apt/preferences.d/php | |
apt-cache search php5-|grep php5-|awk '{print "Package:", $1,"\nPin: release a=karmic\nPin-Priority: 991\n"}' >> /etc/apt/preferences.d/php | |
apt-cache search -n libapache2-mod-php5 |awk '{print "Package:", $1,"\nPin: release a=karmic\nPin-Priority: 991\n"}' >> /etc/apt/preferences.d/php | |
exit | |
# add karmik to source list | |
sed s/lucid/karmic/g /etc/apt/sources.list | sudo tee -a /etc/apt/sources.list.d/karmic.list | |
# update package database (use apt-get if aptitude crash) | |
sudo apt-get update | |
# install php | |
sudo apt-get install -t karmic php5-cli libapache2-mod-php5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment