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?

311 Upvotes

199 comments sorted by

View all comments

Show parent comment

20

u/pnlrogue1 May 22 '26

He didn't dodge anything. He's flat-out wrong about part of his answer to you and the question itself explicitly asks about installing updates and none of those commands do that.

This is a silly question anyway because that's not a Linux command - it's a command for the apt package manager which is only generally used on Debian-based distributions. Ask him to try any of those commands on Fedora/Red Hat or Arch. At least apt[-get] update will do something on Debian/Ubuntu/Mint/etc but Red Hat and Arch based distros, amongst others, will simply fail as they use different package managers entirely.