[TYPO3-debian] offtopic but maybe an answer? Only PHP5 dotdeb on Sarge v3.1

Jordan van Bergen jordanvanbergen at gmail.com
Thu Jun 28 20:44:36 CEST 2007


Hi Steffen,

Thanks for the long explanation below! I hope to find time this weekend to 
test this out. If so I will let you know if I managed to get it working in 
this thread. If I don't find the time I will let you also know if I managed 
to get it working in this thread. This could be next weekend. For now THANK 
YOU VERY MUCH for the explanation below:
Regards
Jordan

> Hi.
>
> On 26.06.2007 21:07 Jordan van Bergen wrote:
>>
>> Any suggestions? I have tried the dotdeb backport and they start to
>> install apache2 and mysql5 immediately as soon as you hit:
>>
>> apt-get update
>> apt-get dist-upgrade
>>
>
> dist-upgrade means upgrading to a new release. This is not what you
> want. If you find some time, read apt-howto. Apt is so powerful, it's
> really worth to dig into it.
> http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html
>
> This is what you need to do to get your system running:
>
> Append the following line to your /etc/apt/sources.list
> deb http://packages.dotdeb.org stable all
>
> Run the commands (in simulation mode!):
> user at host:~$ aptitude update
> user at host:~$ aptitude -s install php5
>
> Notice that apt-get tells you, that some packages have been kept back.
> This is because
> a) Policy: the dotdeb repository comes with a higher preference than
> standard sarge does, and
> b) it delivers more actual php4/mysql4 packages than sarge.
>
> To avoid this, use the pinning feature of apt to change your policy
> (apt-howto chapter 3.10).
>
> To get the actual policy, run
> user at host:~$ apt-cache policy
>
> Package Files:
> 100 /var/lib/dpkg/status
>     release a=now
> 500 http://packages.dotdeb.org sarge/all Packages
>     release o=packages.dotdeb.org,a=sarge,l=packages.dotdeb.org
>     origin packages.dotdeb.org
> 500 ftp://ftp.fu-berlin.de sarge/main Packages
>     release v=3.1r6,o=Debian,a=oldstable,l=Debian,c=main
>     origin ftp.fu-berlin.de
> (...)
>
> The highest priority number (100 / 500) wins.
>
> Change the priority of the dotdeb packages in /etc/apt/preferences:
>
> Package: *
> Pin: origin packages.dotdeb.org
> Pin-Priority: 200
>
> Package: php5-cgi php5-common php5-mysql php5-gd
> Pin: origin packages.dotdeb.org
> Pin-Priority: 900
>
> Now once again try to upgrade your packages:
> user at host:~$ aptitude update
> user at host:~$ aptitude -s install php5
>
> No more packages kept back? Install php5!
> user at host:~$ aptitude -s install php5-cgi php5-common php5-mysql php5-gd
>
> -- 
> cheers,
> Steffen 



More information about the TYPO3-debian mailing list