Linux

How to Update and Upgrade Linux using Terminal

Updating and upgrading a Linux system is easy as drinking a glass of water. Let me show you how to do that.

Update Linux System

1. Open Terminal

Open your terminal. You can use the ctrl + alt + t shortcut to open your terminal.

2. Update Your System

linux

To update your Linux system use this command sudo apt update. It may ask for your system password. Type your password and press enter. Then the update will start.

Upgrade Linux System

1. Open Terminal

Open your terminal. You can use the ctrl + alt + t shortcut to open your terminal.

2. Upgrade Your System

linux

After updating you can see it’s saying there are 14 packages that can be upgraded in my case. (It may different in your case). You can use apt list –upgradable this command to see which packages are needed to upgrade.

linux

To upgrade all packages use sudo apt upgrade -y this command and if it’s asked for your system password then you know what to do.

Read More: How to Find Saved WiFi Password in Linux

linux

We use -y to say that we want to continue. If you don’t use -y at the command you need to say yes manually after using the sudo apt upgrade command.

linux

Two Command at the same time

If you want to update and upgrade your system using only one command then use this command: sudo apt update && sudo apt upgrade -y and you are all good to go.

linux

Leave a reply

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