How to Update Ubuntu Packages Using the Terminal – A Beginner’s Guide

Keeping your Ubuntu system updated ensures you have the latest features, security patches, and bug fixes. Whether you’re a beginner or just want a quick refresher, this guide will show you how to update your Ubuntu packages using simple terminal commands.

What You’ll Learn

  • How to open the terminal
  • How to update package lists
  • How to upgrade your installed software
  • What to expect during the update process

Step 1: Open the Terminal

The easiest way to open the terminal is by using a keyboard shortcut:

Press Ctrl + Alt + T

This will bring up the terminal window where you can enter all the commands.

Terminal Window
Screenshot 1: Terminal opening via Ctrl+Alt+T

Step 2: Update the Package List

Run the following command to refresh the list of available software packages from Ubuntu’s servers:

sudo apt update

You’ll be prompted to enter your password (nothing will appear as you type — this is normal for Linux). Press Enter after typing your password.

Terminal Update Command.
Screenshot 2a: Running sudo apt update and password prompt

This step doesn’t install anything — it just checks for updates.

Screenshot 2b: sudo apt update returning available package updates

Step 3: Upgrade Available Packages

Now run this command to actually install the updates:

sudo apt upgrade

Ubuntu will show you a list of packages that will be updated and ask:

Do you want to continue? [Y/n]

Press Y and hit Enter to start the upgrade.

Screenshot 3: sudo apt upgrade with yes/no prompt

Step 4: Let the Updates Install

Ubuntu will now begin downloading and installing the updates. This may take a few minutes depending on your system and internet speed.

Screenshot 4: Packages being downloaded and installed

During this process, you might be asked to confirm or review certain settings — just follow the prompts.

Step 5: Update Complete!

Once the terminal returns to the command prompt and no errors are shown, the update is complete.

Screenshot 5: Terminal showing successful completion

Your system is now fully updated and secure.

Bonus Tip: Clean Up Unused Packages

After updating, you can remove packages that are no longer needed with:

sudo apt autoremove

This helps keep your system clean and saves disk space.

Final Thoughts

Updating your Ubuntu packages regularly is a good habit that keeps your system secure, fast, and compatible with the latest software. You can even set up automatic updates later if you prefer a more hands-off approach.

If you found this guide helpful, feel free to share it or drop a comment below!

Leave a Comment

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

Scroll to Top