A deep dive into the difference between command line apt-get and command line apt for updating and upgrading with update upgrade dist-upgrade and full-upgrade commands.
Apt-get upgrade vs full-upgrade. Kernel upgrades are packaged as new packages and as a result apt-get upgrade will never upgrade the kernel. Apt-get update updates the package sources list to get the latest list of available packages in the repositories and apt-get upgrade updates all the packages presently installed in our Linux system to their latest versions. This command will upgrade too but during the upgrade there will be some prompts related to package configuration.
This command only upgrades the packages which have a new release available as stated in the sourceslist file in the etcapt folder. Published on Jun 2 2020. It does not install new Linux kernel of the OS.
Apt full-upgrade works very similarly to apt upgrade except it also has the ability to remove packages from the system if its necessary in order to complete an upgrade. The various dist-upgrade and full-upgrade variants will upgrade currently-installed packages install new packages introduced as dependencies and remove packages which are broken by upgraded packages. According to the man pages the command apt-get upgrade for older DebianUbuntu releases or apt upgrade for newer releases.
Another visual feature has been added to the new apt command to make it pleasant for end users. Whenever a package is updating while using an apt upgrade apt full-upgrade or apt dist-upgrade you will see a progress bar informing you of the progress of the process. Apt-get install package_name apt install package_name Remove a package.
You could call it apt update-all or apt upgrate or something. Upgrade packages and remove unnecessary dependencies. Upgrades all upgradable packages.
In dist-upgrade this questions will be answered automatically by apt which will make our upgrade operation more easy and intelligent. In our previous guide we fleshed out the differences between apt update and apt upgrade. Searches for the program.