3

To this day I thought that using 'apt-get upgrade' keeps all my installed packaged to their latest version. Toady however, I realized that my 'deluged' package version is 1.3.6, while there's a newer 1.3.11. Using 'apt-get upgrade' didn't help, and then I found out that I can use 'apt-get install --only-upgrade', but that only works for a specific package.

Why didn't 'upgrade' do the job in my case? Is there a way to insure that all packages are upgraded?

Thanks!

  • Have you managed to figure this out? I have the same question. – p4sh4 Jun 9 '17 at 10:01
1

You want to use apt-get dist-upgrade for this.

upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.

dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. So, dist-upgrade
command may remove some packages. The /etc/apt/sources.list file
contains a list of locations from which to retrieve desired package
files. See also apt_preferences(5) for a mechanism for overriding
the general settings for individual packages
  • Why is needed to "dist-upgrade" for some packages? – Pigeonaras Feb 28 '15 at 9:21
  • for general upgrades, after a apt-get update of course, dist-upgrade will handle the upgrade of all packages as well as their dependencies – Howard Krause Feb 28 '15 at 9:25
  • Maybe dist-upgrade is able to do a deeper upgrade because it actually upgrades the OS, maybe version n+1 of a library requires a specific change in the OS libraries and would break without it. Just a guess though – Purefan Mar 9 '15 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.