apt upgrade vs apt-get upgradeīoth apt-get upgrade and apt upgrade commands install the newer version of the upgradable packages based on the data in the local package cache (refreshed by the update command). Let’s talk compare the upgrade option of both commands. Gnome-control-center-faces/jammy-updates,jammy-updates 1:41.7-0ubuntu0.22.04.4 all Gnome-control-center-data/jammy-updates,jammy-updates 1:41.7-0ubuntu0.22.04.4 all You can see the list of upgradable packages with apt but apt-get doesn’t have this option. Run 'apt list -upgradable' to see them.Īpt-get update doesn’t even tell you if any package can be upgraded. Hit:15 jammy InReleaseĦ packages can be upgraded. It tells you the number of packages that can be upgraded. However, apt update does one thing better than apt-get update. apt update vs apt-get updateīoth apt-get update and apt update do the same task of updating the local package cache so that your system is aware of the available package versions. Let me focus on difference between the update and upgrade options of these commands. You can read this article to learn on the differences of apt and apt-get commands. apt is a newer and simpler version of apt-get. The apt-get command was the most popular of them all. There are many commands that interact with the APT package management apt-get, apt, dpkg, aptitude etc. apt or apt-get? Which one should you be using?ĭebian and Ubuntu use the APT package management system. Now that you understand how the combination update and upgrade works, let’s discuss the use of apt and apt-get. The sudo part lets you run commands as root in Ubuntu and Debian. And hence you use sudo with both commands. Since these are administrative commands, you need to run them as root. apt upgrade: upgrades packages to the new version.apt update: updates the package cache (to know which package versions can be installed or upgraded).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |