![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
First Cup of Ubuntu
![]() Join Date: May 2010
Beans: 1
|
Re: downgrade php / installing php5.2 next to php 5.3
Thanks for your script, it was helpful.
Btw, I used Hardy instead of Karmic since Hardy as a newest version of PHP (v. 5.2.4-2ubuntu5.10) and the Karmic version was giving me warnings... I also change the mirror, I'm not sure where http://de... is but it's definitely not my country. Last edited by gaellafond; May 3rd, 2010 at 11:46 PM.. |
|
|
|
|
|
#13 |
|
A Carafe of Ubuntu
![]() Join Date: Dec 2008
Location: Kyiv, Ukraine
Beans: 101
|
Re: downgrade php / installing php5.2 next to php 5.3
Thanks for the script, it saved my day!
I am not sure how to put my software sources back though. I checked the list and it has lots of karmic sourced and none lucid ones. I am rather new to ubuntu so I may be misunderstanding something but shouldn't I have lucid sources there to keep all my other stuff updated? |
|
|
|
|
|
#14 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2005
Beans: 4
|
Re: downgrade php / installing php5.2 next to php 5.3
Check for the instructions at the bottom of the article.
http://jtrancas.wordpress.com/2010/0...1-and-php-5-3/ It would work for installing karmic PHP packages. Regards. |
|
|
|
|
|
#15 |
|
A Carafe of Ubuntu
![]() Join Date: Dec 2008
Location: Kyiv, Ukraine
Beans: 101
|
Re: downgrade php / installing php5.2 next to php 5.3
Thanks but I've already installed karmic packages by executing the script posted earlier in this thread. What I am worried about is the current state of my system. The software sources list has all karmic sources and none lucid ones. Also when I check for updates, I get a huge list of recommended updates (including stuff that is definitely not related to php) which I find strange because I updated yesterday.
|
|
|
|
|
|
#16 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2005
Beans: 4
|
Re: downgrade php / installing php5.2 next to php 5.3
Oops, sorry. Anyway, i also installed it using karmic packages and i dont have that update suggestions in my system.
|
|
|
|
|
|
#17 |
|
First Cup of Ubuntu
![]() Join Date: Aug 2009
Beans: 3
|
Re: downgrade php / installing php5.2 next to php 5.3
Many thanks!
|
|
|
|
|
|
#18 | |
|
First Cup of Ubuntu
![]() Join Date: May 2009
Beans: 4
Ubuntu 10.04 Lucid Lynx
|
Re: downgrade php / installing php5.2 next to php 5.3
Quote:
I'm working with Drupal and it seams it doesn't support php 5.3. I do have couple of questions: 1. Do I run the above code, to disable updates, in terminal? 2. What about updates to php 5.2? Thanks again |
|
|
|
|
|
|
#19 |
|
First Cup of Ubuntu
![]() Join Date: Aug 2009
Beans: 3
|
Re: downgrade php / installing php5.2 next to php 5.3
After installing php 5.2.10 to hold karmic php packages
Code:
#!/bin/bash
for i in $(dpkg -l | grep php|awk '{ print $2 }' );
do echo "echo $i hold |sudo dpkg --set-selections"; echo $i hold |sudo dpkg --set-selections; done
Code:
#!/bin/bash
for i in $(dpkg -l | grep php|awk '{ print $2 }' );
do echo "echo $i install |sudo dpkg --set-selections"; echo $i install |sudo dpkg --set-selections; done
Code:
#!/bin/bash
PHPLIST=$(for i in $(dpkg -l | grep php|awk '{ print $2 }' ); do echo $i; done)
for i in $PHPLIST ; do echo "Package: $i
Pin: release a=lucid
Pin-Priority: -10
">>/etc/apt/preferences.d/php5.2; done
for i in $PHPLIST ; do echo "Package: $i
Pin: release a=karmic
Pin-Priority: 900
">>/etc/apt/preferences.d/php5.2; done
More info here https://help.ubuntu.com/community/PinningHowto Last edited by rainboww; May 10th, 2010 at 07:44 AM.. |
|
|
|
|
|
#20 |
|
First Cup of Ubuntu
![]() Join Date: May 2009
Beans: 4
Ubuntu 10.04 Lucid Lynx
|
Re: downgrade php / installing php5.2 next to php 5.3
Thanks. The code for holding karmic packages worked.
|
|
|
|
| Bookmarks |
| Tags |
| downgrade, php |
| Thread Tools | |
| Display Modes | |
|
|