How to Update Ubuntu Linux

24/10/2021

Method 1: Update Ubuntu via the Command Line

How to Update Ubuntu

First, open the terminal in Ubuntu desktop. You can find it in the menu, or use the Ctrl+Alt+T keyboard shortcut. If you are logged on to an Ubuntu server, you already have access to a terminal.

In the terminal, you just have to use the following command:

sudo apt update && sudo apt upgrade -y

It will ask for a password. You can use your account’s password. You won’t see characters on the screen while typing password in the terminal, so keep on typing your password and hit enter. This will update the packages in Ubuntu.

See, how easy it is to update Ubuntu from terminal? Now let me explain the above command.

It’s actually not a single command, it’s a combination of two commands. The && is a way to run multiple commands in Linux in a way such that the second command runs only when the previous command ran successfully.

The “-y” in the end automatically enters “yes” when the command “apt upgrade” ask for your confirmation before installing updates.

Note that you can also use the two commands separately, one by one:

sudo apt update
sudo apt upgrade

It will take a little longer, because you have to wait for one command to finish and then enter the second command.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

How to create a docker image?

How to create a docker image? Docker is a tool that is designed to benefit both developers and system administrators, making...
12/02/2020

Install PgAdmin4 on Ubuntu

PgAdmin is a popular open source management and development tool which is released under PostgreSQL/Artistic license. Different...
12/02/2020

Install Numix Theme on Ubuntu

Of course, the interface is the classic one that signifies Ubuntu. However, for us, it’s bound to become a boring thing....
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

SỰ KHÁC BIỆT GIỮA RESIDENTIAL PROXY VÀ PROXY DATACENTER
17/02/2024

Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail
07/01/2024

Mua shadowsocks và hướng dẫn sữ dụng trên window
05/01/2024

Tại sao Proxy Socks lại được ưa chuộng hơn Proxy HTTP?
04/01/2024

Mua thuê proxy v4 nuôi zalo chất lượng cao, kinh nghiệm tránh quét tài khoản zalo
02/01/2024