Issuing “apt-get update” command on ubuntu AWS EC2 instance upgrades PHP version from 7.1 to 7.2?

送分小仙女□ 提交于 2020-01-07 08:53:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!