-->

DEVOPSZONES

  • Recent blogs

    How to update and upgrade the ubuntu system

    How to update and upgrade the ubuntu system


    This tutorial shows you how to upgrade the ubuntu system.

    If you have just started using ubuntu or have some task to upgrade Ubuntu, this tutorial is going to help you.  There are 2 ways to do it:

    1. Update Using GUI.
    2. Update Using CLI.


    1. Update Using GUI.


    Desktop users (in General) look for ‘Software Updater’ and run it. It will look for updates, if it finds one it'll show that information. Click on the "install now" button  to begin the process. It'll ask for the password, once you have given the password the process will start. You’ll be notified at the end of the update if you need to reboot the system. 


    2. Update Using CLI.


    Open the terminal and enter following commands.

    a. Be root, if you do not want to re-enter the passwords.
    sudo su -

    b. Now update and upgrade


    apt update && apt upgrade -y

    As most of you may already know, The ‘-y’ in the end automatically enters yes when the command ‘apt upgrade’ ask for your confirmation before installing the updates.

    apt update : updates the local database of available packages. It'll inform you how many packages will be upgraded.
    You can see these packages by running the following command: 
    apt list --upgradable

    apt upgrade : It will perform the actual upgrade.

    No comments