![]() ![]() ![]() It is generally safe to run, but I do suggest looking at what it says it's going to do before proceeding. It can, and sometimes will, remove packages other than old kernels. ![]() What this really does is to remove packages that were installed automatically as dependencies and that are no longer needed. Instead, to uninstall most old kernels from the command-line, you can use: sudo apt autoremove That is still not a situation that full-upgrade/ dist-upgrade would prevent or address. Especially if you're only updating from the command line, old kernels can gradually accumulate and take up space. Most kernel updates install the new kernel as a separate package, so that you can still boot into the older kernel if the new one doesn't work. You might occasionally encounter this situation when using PPAs or other third-party repositories, but even then, you should be very careful, and full-upgrade/ dist-upgrade would still not be something you'd often need.įinally, note that one major situation where new packages are installed (which apt upgrade will do) is kernel updates. In a stable release of Ubuntu (whether LTS or non-LTS), it is uncommon to need to remove packages in order to upgrade other packages. Before starting the upgrade, you can check the available space on your device. We advise you to change the password to avoid potential breaches. There is no need to use full-upgrade/ dist-upgrade for routine installation of updates. Start by updating the repository package list: sudo apt update Note: If you are using the default user account pi, the password is raspberry. To recap, for what you're currently doing, this is the command you probably want: sudo apt update & sudo apt upgradeĪnd if for some reason you preferred to use apt-get instead of apt, you could use this: sudo apt-get update & sudo apt-get upgrade -with-new-pkgs If for some reason you do want to use apt-get instead of apt to achieve the same effect as apt upgrade, you can run apt-get upgrade -with-new-pkgs. Commands with full-upgrade/ dist-upgrade require special care to be used safely, and there's no good reason even for very experienced users to run them routinely.įurthermore, although using full-upgrade/ dist-upgrade and closely inspecting what it proposes to do used to be widely recommended, this recommendation was questionable even at the time. Most advice to run full-upgrade (or its synonym dist-upgrade) is a vestige of a time when there was no apt command. The full-upgrade action (and dist-upgrade, which is a synonym) can do this too, but it also can remove packages, including packages marked as having been manually installed. Unlike apt-get upgrade, apt upgrade can install new packages to satisfy dependencies. With apt, the upgrade action is nearly always sufficient, and most of the old advice suggesting otherwise does not apply to apt upgrade. The major exception is the upgrade action, which actually behaves in a markedly different way. Most of the differences between apt and apt-get are cosmetic. You should use sudo apt update & sudo apt upgrade instead. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |