cant install the latest php version(7.0.6)

May 13, 2016 532 views

I just install php on ubuntu 16.04 therefor i got installed php7 by default. but the issue is i get the version 7.0.4 not the latest version. with php- v

PHP 7.0.4-7ubuntu2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade

i tried everything but can get to the v7.0.6

any idea how can get the latest php version?

2 Answers

Hi. Ubuntu, like all major distros, backports security fixes without changing version numbers. They often only update release numbers (for example, the "7ubuntu2" in "7.0.4-7ubuntu2"). They do this to avoid breaking backwards compatibility while still applying bug fixes and security patches.

Give this a go;

  • sudo apt-get dist-upgrade
Have another answer? Share your knowledge.