r/linuxquestions • u/ovelx2 • May 22 '26
Support Difference between apt update and apt-get update
Yesterday I had a computer science exam. One of the questions asked: "Which command installs the most recent versions of the programs installed on Linux?" None of the answer choices included anything related to upgrade all of them referred to update. My professor stated that the correct answer was apt-get update, and that the difference between apt update and apt-get update was that apt only searches for updates, whereas apt-get installs new versions of programs. The entire class disagreed, but he insisted. What is the actual difference between these commands, and is my professor mistaken?
View all comments
Show parent comment
14
u/Hari___Seldon May 23 '26
You're expecting a level of nuance that almost never shows up in introductory Linux classes. Most of them teach perfunctory command line usage in bash, how to identify system variables, use of a simple editor like nano, and maybe a bit of scripting. If you go in actually knowing what a distro is, you've pretty much aced the class already.
I deep-dived this a few years go (long, fairly irrelevant story why) and was surprised to see that many schools treat that as a 1 or 2 semester-hour class that's basically just meant to be a check on a list before getting to "real topics".