9
owena
8y

sudo apt update; sudo apt dist-upgrade -y

Linux roulette!

Comments
  • 1
    If all the distros were Debian based, maybe.
  • 0
    I don't see the probably here.... I usually run sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove when first signing into server for the day
  • 1
    @ScribeOfGoD
    For the first time yes..
  • 0
    @Linux what do you mean?
  • 0
    @ScribeOfGoD
    Dist upgrade is not good to run in production
  • 0
    @Linux Any reason? Always having the latest kernel is a good idea. Otherwise it'd be easy to break into, as we've seen from previous experience :p
  • 0
    @ScribeOfGoD
    Dist-upgrade perform a major upgrade of every package installed on the system, not only kernel
  • 0
    @Linux 🤔 for me doing apt-get upgrade does only the packages and leaves the kernel and dist-upgrade does only the kernel but leaves the packages..
  • 0
    'apt-get upgrade' doesn't install or remove any packages - it just updates installed ones. 'apt-get dist-upgrade' will install and/or remove packages if dependencies changed.

    @ScribeOfGoD linux-image* is just a kernel metapackage that depends on a specific version of kernel image (with its own package). If a new kernel is introduced that dependency will change, forcing installation of a new kernel (with a new package). That will only happen if you dist-upgrade.
Add Comment