View Full Version : [SOLVED] terminal commands for update and dist upgrade

June 4th, 2018, 10:48 PM
what are the correct terminal commands to update and also do a dist-upgrade?

June 5th, 2018, 12:57 AM
It depends on the release, but ...
sudo apt update && sudo apt full-upgrade
Dist-upgrade has been deprecated because it was confusing many people, since it doesn't move from release to release. The apt or apt-get manpage has the details.
From the apt manpage:

update (apt-get(8))
update is used to download package information from all configured
sources. Other commands operate on this data to e.g. perform
package upgrades or search in and display details about all
packages available for installation.

upgrade (apt-get(8))
upgrade is used to install available upgrades of all packages
currently installed on the system from the sources configured via
sources.list(5). New packages will be installed if required to
statisfy dependencies, but existing packages will never be removed.
If an upgrade for a package requires the remove of an installed
package the upgrade for this package isn't performed.

full-upgrade (apt-get(8))
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 release-to-release things, there are different methods.

June 5th, 2018, 01:01 AM
sudo apt update && sudo apt upgrade

sudo apt update && sudo apt dist-upgrade

June 5th, 2018, 01:49 AM
thank you - a bit different than i am used to. great!

June 5th, 2018, 12:13 PM
Please mark your thread 'solved'.

June 6th, 2018, 12:22 PM
how do i mark it?

June 6th, 2018, 12:50 PM
how do i mark it?

Just follow the link in my signature on how to mark the thread as solved

June 6th, 2018, 01:32 PM
thanks - i missed that!!!!