If you want to install the latest PHP (for example PHP7) but you want to stick to the release's packages intead of hacking the sources around and you want to do a full-release upgrade (for example you are in Ubuntu 14.04 -which does not have php7- and you want to go to Ubuntu 16.04 -which does- then you can do: do-release-upgrade Then update the package lists and perform the upgrade: sudo apt-get update If you ran the above commands but the packages still were not upgraded, probably you didn't add Ondřej Surý's PHP PPA to your system.įor PHP 5.5, PHP 5.6 and PHP 7.0: sudo apt-add-repository ppa:ondrej/phpįor PHP 5.4 (Deprecated, upgrade at least to PHP 5.5): sudo apt-add-repository ppa:ondrej/php5-oldstableįor PHP 5.5 (Deprecated, use ppa:ondrej/php): sudo apt-add-repository ppa:ondrej/php5įor PHP 5.6 (Deprecated, use ppa:ondrej/php): sudo apt-add-repository ppa:ondrej/php5-5.6 To actually upgrade the packages you have to run: sudo apt-get upgrade Apt-get update updates only the package lists.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |