![]() The answer is stability and predictability. If the dist-upgrade is the superior command and does all that apt-get upgrade does, why not use it all the time? Why even bother using apt-get upgrade at all? Why not use dist-upgrade all the time then? dist-upgrade doesn’t upgrade the distribution version.dist-upgrade can also upgrade kernel version. ![]() dist-upgrade can remove dependency packages or install new ones (if required).apt-get upgrade doesn’t upgrade kernel version.It doesn’t install new packages or remove existing packages. apt-get upgrade only upgrades existing packages.This DOES NOT mean that you run dist-upgrade command and your Ubuntu is upgraded to 22.04 from 20.04. If you see packages have been kept back message, you can run the dist-upgrade or run apt-get install on those packages explicitly.Īlso, if you are looking to upgrade the distribution version, you should use dist-upgrade before starting the distribution upgrade so that all dependencies are handled properly. When your system encounters scenarios where it has to install or remove (dependency) packages for upgrading the installed packages, dist-upgrade helps you. It’s not just limited to kernel upgrades. apt-get dist-upgrade can upgrade kernel version You can see in the screenshot that running apt-get dist-upgrade not only upgrades installed packages but also installs the new kernel version. It can also install new packages if required. This includes removing dependency packages that are no longer necessary or resolving conflicts between packages that arose because of changes in the dependencies. Apart from the upgrade function, it can also intelligently handle changes in the package dependencies. The dist-upgrade is a superset of upgrade. apt-get upgrade cannot ‘upgrade’ kernel version Since it involves installing new packages, apt-get upgrade doesn’t upgrade the kernel. Because when there is a new kernel version is available, it is installed along with the one which is already in use. Why? Your system keeps at least two kernels at a time. It also means you cannot upgrade the Linux kernel version with apt-get upgrade. ![]() The dist-upgrade, on the other hand, can install new packages or remove existing packages if required. However, apt-get upgrade command cannot install a new package or remove an installed package from the system. Difference between apt-get upgrade vs apt-get dist-upgradeīoth upgrade and dist-upgrade are used for upgrading the installed packages on the system. I’ll also discuss how apt upgrade and apt full-upgrade do things differently. In this article, I’ll explain the difference between apt-get upgrade and dist-upgrade. However, many Linux users get confused between the use of apt-get upgrade and apt-get dist-upgrade.Īre they the same, or is there a difference? In which cases should you use apt-get upgrade and when should you use apt-get dist-upgrade? The apt-get update part updates the local package cache and thus tells your system about the packages that can be upgraded.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |