my notes

Downgrade a .deb package to a lower version

I recently upgraded my PHP from 5.2.9 to 5.2.10 PHP using the dotdeb repository. After the upgrade I started getting child died with signal error messages, so I decided to downgrade to PHP 5.2.9 and here is how you do it:

# apt-cache showpkg php5

search for line

Provides: 5.2.9-0.dotdeb.2 - 5.2.6.dfsg.1-1+lenny3

then downgrade the package like this:

# apt-get install php5=5.2.9-0.dotdeb.2

and the rest of php5 packages: