[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to stick with php5 5.3.x ?



On Thu, 3 May 2012 14:52:04 +0530
"J. Bakshi" <bakshi12@gmail.com> wrote:

> Dear list,
> 
> This is a debian wheezy and have php 5.4.x.
> I need to stick with php 5.3.x and to achieve this I have added
> the following at my sources list
> 
> ` ` ` `
> deb http://ftp.debian.org/debian squeeze main contrib non-free
> deb http://security.debian.org squeeze/updates main contrib non-free
> 
> ` ` ` `
> 
> After apt-get update; I get both 5.3 and 5.4 of php5. But every time
> it calls the 5.4.x of php5. How can I install the 5.3.x series then ?
> 
> Any alternative way is also welcome.
> 
> Thanks

Well, did some research and founf apt preferences does the trick.

So I have created  /etc/apt/preferences.d/php and added

` ` ` `
Package: php5*
 Pin: release a=stable
 Pin-Priority: 900

` ` ` `

where as the sources list have

` ` ` `
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

` ` ` `

But apt still installs the 5.4 version of php not 5.3. 

Any clue please ?

Thanks


Reply to: