Update packages in ubuntu 16.x
Package update is very important, In order to improve the server security- proper patches & kernel should be upgrade.
update packages in ubuntu 16.x
It’s very simple & only few steps.
Step1.
sudo apt-get upgrade
Step2.
sudo apt-get update
dist-upgrade
dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. So, dist-upgrade command may remove some packages. The /etc/apt/sources.list file contains a list of locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for overriding the general settings for individual packages.
Step3.
Sudo apt-get dist-upgrade