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
1
u/Due_Friendship_8597 May 23 '26
Ubuntu 26.04
sudo apt --update --upgradeE: Command line option --update is not understood in combination with the other optionssudo apt --update upgradeHit:1http://security.ubuntu.com/ubunturesolute-security InReleaseHit:2https://brave-browser-apt-release.s3.brave.comstable InReleaseHit:3http://ftp.nluug.nl/os/Linux/distr/ubunturesolute InReleaseHit:4https://esm.ubuntu.com/apps/ubunturesolute-apps-security InReleaseHit:5http://ftp.nluug.nl/os/Linux/distr/ubunturesolute-updates InReleaseHit:6https://esm.ubuntu.com/infra/ubunturesolute-infra-security InReleaseHit:7http://ftp.nluug.nl/os/Linux/distr/ubunturesolute-backports InReleaseAll packages are up-to-date.Summary:Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0