问题
Please let me know if issuing "apt-get update" command on AWS EC2 ubuntu 14.04 machine upgrades PHP version from 7.1 to 7.2
回答1:
You can confirm that with the following command:
sudo apt-get upgrade --dry-run
Based on Linux Man Page:
No action. Perform a simulation of events that would occur but do not actually change the system.
回答2:
Well, apt-get update updates the apt-get list of repositories, to update the packages installed by apt-get you should use apt-get upgrade:
# apt-get upgrade php7
or
# apt-get upgrade
来源:https://stackoverflow.com/questions/50093761/issuing-apt-get-update-command-on-ubuntu-aws-ec2-instance-upgrades-php-version