Recently when I was trying to update my Ubuntu, I initially used the commands:
sudo apt-get update && sudo apt-get upgrade
Then, I thought my system is full updated (i.e., with system and security updates), but gradually I found that Ubuntu was still prompting for certain updates, and those were actually the system updates. Proceeding, I read some discussions online, and started using,
sudo apt-get update && sudo apt-get full-upgrade
This also downloaded certain files like:
linux-headers-generic
linux-image-generic
etc.
Yesterday, someone suggested me to use:
sudo apt-get update && sudo apt upgrade
instead, since, it was mentioned that, apt-get full-upgrade might cause error and is dangerous, for it can lead to deletion of necessary packages if the package system is "messed-up".
Now, I am a bit confused, and feels like to start over again.
Which command set should I use to get full system and security updates, and what is the actual difference between apt-get full-upgrade and apt upgrade. Is the former shouldn't be really put to use?
sudo apt-get update && sudo apt upgradecontains two commands (the&&means the second command is only executed if the first completes without errors) to you might need to clarify which two you mean. The link I selected mentionsupdate,upgradeanddist-upgrade(orfull-upgradeinaptusage..) - refer tomanor manual pages for exact details on your release, as there is very slight variation on release (more functionality gets added toaptover time, so there is less need forapt-getvery slowly) – guiverc Jul 07 '20 at 06:43apt-get full-upgradeandapt upgrade. – kamer_kane Jul 07 '20 at 06:45update,upgrade,dist-upgrade&full-upgrade. As stated there is slight variations asaptgets improved over time (ie. release specific), so readman aptfor details for your unstated release. Personally I usefull-upgrade(ordist-upgrade) unless I have specific reason to limit upgrade to those provided byupgrade– guiverc Jul 07 '20 at 06:46man apttells me "full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole" for my release.. the approximately similar detail found in my duplicate tagged post (variation will exist on release) – guiverc Jul 07 '20 at 06:48aptis a nicer replacement forapt-get. It however is a different tool, which does thing differently. The purpose of the commands isapt-get updateis replaced byapt update,apt-get upgradeis replaced byapt upgrade,apt-get dist-upgradeis replaced byapt-get full-upgradeetc... the same options to ease transition, howeverapt-getstill does thingsaptcannot do, whyaptchanges with releases...aptis a wrapper that does almost the same asapt-getso you're mixing two different tools in a way that isn't wise!!aptwill likely replaceapt-get– guiverc Jul 07 '20 at 06:54sudo apt autoremovecan mean prior damage becomes readily apparent, though it didn't actually do the damage, it was prior careless commands). Problems if they occur were waiting to happen, and any mistakes were from prior commands in my opinion... – guiverc Jul 07 '20 at 07:00