Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 42812  / 1 Year ago, fri, february 17, 2023, 1:45:55

I have always been running the following command to update via terminal my machines:



sudo apt-get update && sudo apt-get upgrade -y


But the other day, right after having finished installing some updates, the Update Manager popped up asking me to install some updates. I was puzzled as I have always thought the two were equivalent. I tried running the terminal command again: no updates. Then tried pressing the "Check" button on Update Manager: again some updates were available.



My conclusion is that the command above is not equivalent to the Update Manager, as I have always thought. So, what is the true equivalent terminal command of Update Manager?


More From » upgrade

 Answers
6

apt-get will NOT consider "suggested" packages as updates, while Update Manager does. It Update Manager also includes packages which apt-get would only install/upgrade with dist-upgrade. Additionally, I believe Update Manager maintains its own package cache which is only automatically updated daily and thus may not always be synchronized with the APT package cache.



To really check if you're missing out on updates, check the version of non-recommended updates Update-Manager wants you to install, and then do a dpkg --list | grep -i packagename to find out which version of the package is really installed on your system.


[#38173] Sunday, February 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
assionortly

Total Points: 423
Total Questions: 121
Total Answers: 115

Location: Chad
Member since Wed, Sep 30, 2020
4 Years ago
;