Categories: Ubuntu

How to Update All Packages on Ubuntu 22.04

Ubuntu is the Linux distribution that comes with different packages used for different daily life applications. The development team of different packages releases updates that include performance updates, security updates, or new version updates.

In this blog, we learn to make sure that we are using the most recent updated versions of the packages by updating and upgrading all the packages with the methods discussed.

How to Update All Packages on Ubuntu?

There are two different methods by which we can update all the packages:

Method 1: How to update all the packages on Ubuntu using the terminal

The Ubuntu distribution can be managed by the command-line interface. So, we will first open the terminal using the shortcut key “CTRL+ALT+T” and then use the command given-below to get an update of all the packages:

$ sudo apt update

To view the packages whose updates are available, run the command:

$ sudo apt list –upgradable

To upgrade all these packages altogether, execute the command:

$ sudo apt upgrade

It will confirm from you to proceed with the process, allow it by typing “Y” and pressing the ENTER key:

When the process is completed, all the packages will be up to date.

Method 2: How to update all packages on Ubuntu using the GUI method

Another method to update all the packages on Ubuntu is by using the GUI (Graphical User Interface) method.

For updating packages through GUI, search for “Software Updates” in the application search bar and open it:

It will show you the packages ready to be upgraded(if any). Click on the “Install Now” button to begin the updating process of all the packages:

When the upgradation of all the packages is completed, the message will be displayed on the screen.

This way, one can update and upgrade all the packages on Ubuntu 22.04 without any hassle.

Conclusion

Use “sudo apt update” and “sudo apt upgrade -y” commands to update and upgrade all the packages to their newest available versions on Ubuntu 22.04. In this writeup, two different methods are demonstrated by which all the packages of Ubuntu can be updated.

Ubuntu Server Admin

Recent Posts

🚀 Deploy Elastic Stack on Ubuntu VPS (5 Minute Quick-Start Guide)

Here’s the guide to deploy Elastic Stack on Ubuntu VPS, with secure access, HTTPS proxying,…

4 days ago

🚀 Deploy Nagios on Ubuntu VPS

This guide walks through deploying Nagios Core on an Ubuntu VPS, from system prep to…

4 days ago

Shoryuken Has a New Maintainer, and v7.0.0 Is Almost There

After a decade under Pablo Cantero's stewardship, Shoryuken has a new maintainer - me. I'm…

1 week ago

A better way to provision NVIDIA BlueField DPUs at scale with MAAS

MAAS 3.7 has been officially released and it includes a bunch of cool new features.…

2 weeks ago

Ruby Floats: When 2.6x Faster Is Actually Slower (and Then Faster Again)

Update: This article originally concluded that Eisel-Lemire wasn't worth it for Ruby. I was wrong.…

2 weeks ago

MicroCeph: why it’s the superior MinIO alternative (and how to use it)

Recently, the team at MinIO moved the open source project into maintenance mode and will…

2 weeks ago