apt-get upgrade didn't update PHP but updated its php modules

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I performed

sudo apt-get upgrade

and was expecting to see that PHP version update from 5.6.30 to 5.6.37. To my surprise, php version didn't upgrade but its modules did. I still see 5.6.30 in phpinfo

dpkg --list | grep php


ii  php5.6                           5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    all          server-side, HTML-embedded scripting language (metapackage)
ii  php5.6-bcmath                    5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        Bcmath module for PHP
ii  php5.6-cli                       5.6.30-7+deb.sury.org~trusty+1                           amd64        command-line interpreter for the PHP scripting language
ii  php5.6-common                    5.6.30-7+deb.sury.org~trusty+1                           amd64        documentation, examples and common module for PHP
ii  php5.6-curl                      5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        CURL module for PHP
ii  php5.6-fpm                       5.6.30-7+deb.sury.org~trusty+1                           amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
ii  php5.6-gd                        5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        GD module for PHP
ii  php5.6-json                      5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        JSON module for PHP
ii  php5.6-mbstring                  5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        MBSTRING module for PHP
ii  php5.6-mysql                     5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        MySQL module for PHP
ii  php5.6-opcache                   5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        Zend OpCache module for PHP
ii  php5.6-readline                  5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        readline module for PHP
ii  php5.6-xml                       5.6.37-1+ubuntu14.04.1+deb.sury.org+1                    amd64        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii  php5.6-zip                       5.6.30-7+deb.sury.org~trusty+1                           amd64        Zip module for PHP

how to get the php version also upgraded to 5.6.37?

Output of apt-cache policy below:

sudo apt-cache policy php5.6-cli php5.6-common php5.6-fpm php5.6-zip
php5.6-cli:
  Installed: 5.6.30-7+deb.sury.org~trusty+1
  Candidate: 5.6.37-1+ubuntu14.04.1+deb.sury.org+1
  Version table:
     5.6.37-1+ubuntu14.04.1+deb.sury.org+1 0
        500 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main amd64 Packages
 *** 5.6.30-7+deb.sury.org~trusty+1 0
        100 /var/lib/dpkg/status
php5.6-common:
  Installed: 5.6.30-7+deb.sury.org~trusty+1
  Candidate: 5.6.37-1+ubuntu14.04.1+deb.sury.org+1
  Version table:
     5.6.37-1+ubuntu14.04.1+deb.sury.org+1 0
        500 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main amd64 Packages
 *** 5.6.30-7+deb.sury.org~trusty+1 0
        100 /var/lib/dpkg/status
php5.6-fpm:
  Installed: 5.6.30-7+deb.sury.org~trusty+1
  Candidate: 5.6.37-1+ubuntu14.04.1+deb.sury.org+1
  Version table:
     5.6.37-1+ubuntu14.04.1+deb.sury.org+1 0
        500 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main amd64 Packages
 *** 5.6.30-7+deb.sury.org~trusty+1 0
        100 /var/lib/dpkg/status
php5.6-zip:
  Installed: 5.6.30-7+deb.sury.org~trusty+1
  Candidate: 5.6.37-1+ubuntu14.04.1+deb.sury.org+1
  Version table:
     5.6.37-1+ubuntu14.04.1+deb.sury.org+1 0
        500 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main amd64 Packages
 *** 5.6.30-7+deb.sury.org~trusty+1 0
        100 /var/lib/dpkg/status

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

tuteehub community

Join Our Community Today

Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.

tuteehub community