通过 Debian Snapshot 安装旧版本包
某个项目需要 PHP 5.3 支持,通过 APT 没办法直接安装,编译安装又是一大堆依赖,最后通过 Debian Snapshot 解决。
- 在 http://snapshot.debian.org/ 搜索需要的包, 比如
php5
- Got
http://snapshot.debian.org/archive/debian-ports/20120225T023111Z/pool-m68k/main/p/php5/
- 添加到
source.list
:
deb http://snapshot.debian.org/archive/debian/20120225T023111Z/ unstable main
deb-src http://snapshot.debian.org/archive/debian/20120225T023111Z/ unstable main
apt-get -o Acquire::Check-Valid-Until=false update
apt-get install php5=5.3.10-2 php5-fpm php5-cgi
, done.
Was this page helpful?