Results 1 to 4 of 4

Thread: Update, Upgrade and/or Dist Upgrade

  1. #1
    Join Date
    Jan 2010
    Beans
    4

    Update, Upgrade and/or Dist Upgrade

    Hi all,

    Thanks beforehand for your support. I am begining on Ubuntu Server Management

    I would like to receive your help on this doubt... In order to have my Ubuntu Server up to date and with the last security patches, is it enough to do:

    sudo apt-get update
    sudo apt-get upgrade

    ?

    If not, please where I can find an easy guide in order to keep or mantain my server OK?

    Also, what are the risks when we do: sudo apt-get dist-upgrade?

    Thank you very much again.


    Nathan.

  2. #2
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,654
    Distro
    Ubuntu Development Release

    Re: Update, Upgrade and/or Dist Upgrade

    Hi Nathan, welcome to the forums.

    Update the Package Index: The APT package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list file. To update the local package index with the latest changes made in repositories, type the following:

    sudo apt-get update
    Upgrade Packages: Over time, updated versions of packages currently installed on your computer may become available from the package repositories (for example security updates). To upgrade your system, first update your package index as outlined above, and then type:
    sudo apt-get upgrade
    apt-get dist-upgrade
    This command installs up-to-date version of packages, and may install additional packages.

    Or, put another way ..

    dist-upgrade, in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages"
    So, it would be update, then the dist-upgrade to keep up to date

    Hope that clarifies it for you.

    Regards,

    Phill.
    Last edited by phillw; January 18th, 2010 at 07:18 PM.

  3. #3
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,654
    Distro
    Ubuntu Development Release

    Re: Update, Upgrade and/or Dist Upgrade

    OOps - double post ..
    Last edited by phillw; January 18th, 2010 at 07:44 PM. Reason: double post

  4. #4
    Join Date
    Jan 2010
    Beans
    4

    Smile Re: Update, Upgrade and/or Dist Upgrade

    Thank you Phill.



    Quote Originally Posted by phillw View Post
    Hi Nathan, welcome to the forums.



    So, it would be update, then the dist-upgrade to keep up to date

    Hope that clarifies it for you.

    Regards,

    Phill.

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
  •