How to Update All Packages on OpenSUSE

29/12/2020
In the case of Linux, a package is a compressed archive containing necessary data and/or codes to perform a certain task. Any Linux distro you come across is a clever combination of numerous packages working in sync. In the case of openSUSE, it’s a clever combo of numerous RPM packages (including dependencies).

It’s important to keep the packages up-to-date for several reasons, for example, better security, better stability and performance, and new/improved features.

Let’s check out how to update all packages on openSUSE.

How to update openSUSE packages

In the case of openSUSE, there are two tools at our disposal: zypper and YaST. While zypper is a command-line tool, YaST supports both THE command-line and graphical interface. Let’s get started.

Update Packages with Zypper

At first, we need to update the repo package database. Tell zypper to update the repo database cache.

$ sudo zypper ref

Now, to update all the packages, run the next command.

$ sudo zypper update

Wait for zypper to download and install all the packages.

Interested in what packages are going to be updated? Run this command.

$ zypper list-updates –all

Zypper is far more capable than this. Check out a beginner’s guide to mastering zypper.

Update Packages with YaST

Using YaST is a bit tricky than zypper. It’s because YaST isn’t a package manager only. It’s more like the master control panel for openSUSE and SUSE Linux. Package management is just a part of its supported functionalities.

At first, we’ll be checking out how to update all the installed packages using YaST. Fire up YaST.

Enter the root password so that YaST can run with root privilege. It’s because every single task performed by YaST modifies things at the system-level.

From the “YaST Control Center”, click the “Software Management” option.

Now, there are two ways it can go. If you know the name of specific packages, search for them, right-click and select “Update”.

However, if you’re just going to update all the packages, it’s not a practical approach. This is where this method comes in. Go to Package >> All Packages >> Update if newer version available.

YaST will notify the number of packages that will be updated in the process. Click “Continue”.

You’ll be presented with a list of all the packages that are about to be updated. Click “Accept” from the bottom-right corner.

YaST will present a short report on what package changes about to occur. Click “Continue”.

It’s time to wait unless YaST downloads and installs all the available updates for the installed packages.

Click “Finish” once the installation completes and shows the “Installation Report”.

Final thoughts

As you can see, keeping openSUSE up-to-date with the latest packages isn’t that tough at all. Another good news is, you don’t have to run them every single day. Just run them once or twice a week and you’re good to go!

Interested in network management? Check out how to use NetworkManager on openSUSE.

Enjoy!

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

Install Manjaro Linux on VirtualBox

Manjaro Linux is based off of the Arch Linux distribution. It is meant to provide all the benefits of Arch Linux, its modularity,...
29/12/2020

Vì sao cần thuê proxy xoay? Địa chỉ cung cấp proxy xoay uy tín

Nhu cầu sử dụng proxy ngày càng tăng cao bởi những lợi ích tuyệt vời mà nó đem lại. Một trong...
05/10/2023

How do I completely wipe my hard drive in Ubuntu?: wipe, srm, scrub, shred and dd.

Usually Linux users use the command rm to remove files and directories. When we remove a file using the command rm we are...
29/12/2020
Bài Viết

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

Dịch Vụ Xây Dựng Hệ Thống Peering Với Internet Exchange (IXP)
04/04/2025

Dịch Vụ Triển Khai VPN Site-to-Site & Remote Access
04/04/2025

Dịch Vụ Thiết Lập Hệ Thống Tường Lửa (Firewall)
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ảo Hóa & Cloud
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ceph
04/04/2025