How to update Ubuntu from the terminal

update ubuntu terminal

From the desktop environment, Ubuntu has systems for locating new available updates and installing them, as well as notifying you of the release of a new version of the distribution in case you want to update it if it is not LTS. But you probably want to update the version of your favorite distribution from the terminal. Well, in this article you will be able to see a simple tutorial that works with all flavors of Ubuntu and that will allow you to update the version of your distro from the console in a few moments.

Before upgrading the distro, you should have Some considerations:

  • Make sure that the kernel of the new version of the Ubuntu distribution supports your hardware and that necessary drivers have not been removed, as is the case in some cases if the hardware is somewhat older.
  • Make a backup of all your data or a snapshot of the operating system in case something happens that you can recover it.
  • Have a Live handy to boot from and troubleshoot if it stops working after the update.
  • Make sure that if it is a laptop, it has 100% battery or is connected to the mains so that it is not interrupted in the middle of the update.

Obviously, in 99,999% of the cases absolutely nothing happens, and it updates easily without problems, but they are warnings that you should keep in mind in case something goes wrong during the process.

Once we know this, let's see the steps to be able to update Ubuntu from the terminal:

  • Open the terminal and run this command:

sudo apt-get update

  • or also works:

sudo apt update

  • The next thing is to execute this other command, which is the one that will actually update your Ubuntu distro:

sudo apt-get upgrade

  • or as an alternative to the previous one you can also use this one indistinctly:

sudo apt upgrade

  • Finally, the only thing left to do is restart once the previous process has been completed, which may take some time, so be patient:

sudo reboot


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Employee said

    Hello, we can also use this command to do it all in one
    apt update && apt upgrade -y