如何使用apt-get安装旧版本的php? [英] How to Install an older version of php using apt-get?
本文介绍了如何使用apt-get安装旧版本的php?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个确切版本的旧软件包,我想在Ubuntu上安装.
I have this older package in this exact version that I want to install on Ubuntu.
https://launchpad.net/ubuntu/+source/php5/5.3.10-1ubuntu3.20
如何使用apt-get安装它?谢谢
How can I install it using apt-get ? Thank you
推荐答案
找出启用的存储库中有哪些不同版本的软件包
to find out what different versions of a package is available in the enabled repository
apt-cache policy <package-name>
以您的情况
apt-cache policy php5
选择要安装的版本,然后键入
select the version that you want to install and then type
sudo apt-get install pkgname=version
以您的情况
sudo apt-get install php5=5.3.10-1ubuntu3.20
在运行上述任何命令之前,最好先更新apt-cache.为此,请运行
before running any of the above commands, it is better to update the apt-cache first. To do it, run
sudo apt-get update
这篇关于如何使用apt-get安装旧版本的php?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文