[TYPO3-debian] offtopic but maybe an answer? Only PHP5 dotdeb on Sarge v3.1
Steffen Müller
typo3 at t3node.com
Wed Jun 27 14:55:02 CEST 2007
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