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

15

u/paperclip422 May 22 '26

I'm afraid it's 4 years old. Looks like the option works on Ubuntu 24.04

6

u/jonnyl3 May 22 '26

Does apt not receive updates in between OS releases? In other words, is it not able to update itself?

7

u/radiowave911 May 22 '26

Don't know about Ubuntu, I left them several years ago and went to Debian, but I do sometimes see APT updates come down outside of the version updates. Given I am running stable, it is bugfixes and security updates typically. Not sure how Ubuntu is handling it these days.

3

u/TehGogglesDoNothing May 22 '26

Depends if they add the updates to the repo for that release.

3

u/punkwalrus May 22 '26

Confirmed. On 22.04 apt is version 2.4.14, and on 24.04 (where the command works as u/ipsirc suggested) is 2.8.3. I still wouldn't recommend it yet, though, especially for beginners, because you don't know what version of apt they have. Not for a little while.