如何知道发布版本中包含哪个版本的 PHP?

如何知道发布版本中包含哪个版本的 PHP?

是否有一个页面或 Wiki 列出每个 Ubuntu 版本默认关联的 PHP 版本?

10.04 LTS => PHP 5.3.2

等等...

答案1

packages.ubuntu.com网站。对于这些东西来说它非常方便

这是当前输出:

lucid (php): server-side, HTML-embedded scripting language (metapackage)
5.3.2-1ubuntu4.20 [security]: all

lucid-updates (php): server-side, HTML-embedded scripting language (metapackage)
5.3.2-1ubuntu4.20: all

precise (php): server-side, HTML-embedded scripting language (metapackage)
5.3.10-1ubuntu3.7 [security]: all

precise-updates (php): server-side, HTML-embedded scripting language (metapackage)
5.3.10-1ubuntu3.7: all

quantal (php): server-side, HTML-embedded scripting language (metapackage)
5.4.6-1ubuntu1.3 [security]: all

quantal-updates (php): server-side, HTML-embedded scripting language (metapackage)
5.4.6-1ubuntu1.3: all

raring (php): server-side, HTML-embedded scripting language (metapackage)
5.4.9-4ubuntu2.2 [security]: all

raring-updates (php): server-side, HTML-embedded scripting language (metapackage)
5.4.9-4ubuntu2.2: all

saucy (php): server-side, HTML-embedded scripting language (metapackage)
5.5.1+dfsg-1ubuntu1: all

从 Xenial Xerus 开始,要搜索的关键字字符串是“php”。 (版本是 PHP7)

xenial (php): server-side, HTML-embedded scripting language (default)
1:7.0+35ubuntu6: all
also provided by: php7.0

xenial-updates: Virtual package
provided by: php7.0

yakkety (php): server-side, HTML-embedded scripting language (default)
1:7.0+42: all
also provided by: php7.0

答案2

本页列出了php5Ubuntu 不同版本中的不同版本:

https://launchpad.net/ubuntu/+source/php5

Ubuntu 16.04 LTS (Xenial Xerus) 是第一个搭载 PHP 7 的 Ubuntu 版本。因此链接更改为:

https://launchpad.net/ubuntu/+source/php7.0

相关内容