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

2

u/AFlyingGideon May 22 '26

dnf is apparently the new and improved yum. Why not just improve yum I've never bothered to learn, but there's probably a fun story there.

2

u/radiowave911 May 22 '26

Ok, so I am not as far off as I thought :)

I don't use anything from RH regularly that I would even be able to update (the work servers are managed by the server support team - I don't have the necessary permissions to install/run packages that would require me to use dnf/yum.)

2

u/5141121 May 22 '26

Because Yum was actually a product RH got from another distro called Yellow Dog Linux. Yum was YellowDog Update Manager.

DNF is an in-house product.