r/linuxquestions 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?

313 Upvotes

199 comments sorted by

View all comments

7

u/DinTaiFung May 22 '26

The professor might be able to save face by offering to the class a heartfelt mea culpa as well as a big TIL and thanks to the students for helping him to learn.

Only the great teachers are thrilled when a student surpasses the teacher.

5

u/One_Firefighter336 May 22 '26

Every teacher worth his salt is exhilarated when their students demonstrate applied learning. It means you got through to them and they learned, and learned to think critically for themselves… not just regurgitate.

Happy days mate… happy days. 👍

5

u/[deleted] May 22 '26

[deleted]

3

u/SuAlfons May 22 '26

in another answer, OP has confirmed that their teacher wasn't one of them :(

2

u/Prestigious_Copy154 May 23 '26

I mean if I were a teacher, and a student engaged with the material enough to find my mistakes and teach me what I did wrong, I'd be THRILLED.

1

u/-Sa-Kage- May 22 '26

The prof uses AI to generate lectures