You use the Advanced Packaging Tool (apt) to manage additional applications (in the form of packages) and to install the latest updates.
Before running any apt-get commands or after changing the /etc/apt/sources.list file, you need to run apt-get update.
The apt-get upgrade and apt-get install commands cause disruptions to network services:
apt-get upgrade command might result in services being restarted or stopped as part of the upgrade process.apt-get install command might disrupt core services by changing core service dependency packages.In some cases, installing new packages with apt-get install might also upgrade additional existing packages due to dependencies. To view the additional packages that will be installed and/or upgraded before installing, run apt-get install --dry-run.