Results 1 to 2 of 2

Thread: What is the difference between apt-get upgrade and apt-get dist-upgrade?

  1. #1
    Join Date
    Jan 2012
    Beans
    58

    Question What is the difference between apt-get upgrade and apt-get dist-upgrade?

    Some say that dist-upgrade is to upgrade the distribution... Actually, that's not true... Its an old story...

    The man pages say that 'upgrade' will update the packages without touching the dependencies and 'dist-upgrade' will also touch the dependencies and remove them if it wants to.

    I can't fully understand this... Can some one please make this clear? A full explanation? Is it a risk to use dist-upgrade? Why do we have two commands like this?

    Thanks in advance...

  2. #2
    Join Date
    Jan 2008
    Beans
    7,749

    Re: What is the difference between apt-get upgrade and apt-get dist-upgrade?

    "apt-get upgrade" will never add/remove any packages from your system. (similar to "aptitude safe-upgrade")

    "apt-get dist-upgrade" will add/remove packages if necessary. (similar to "aptitude full-upgrade")

    Example: an updated kernel is available. "dist-upgrade" will give you the new kernel; "upgrade" will not.

    I personally use only "dist-upgrade." It is the command-line equivalent of what the GUI Update Manager does.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •