One of the important steps of maintaining a computer system is to patch the system properly and timely. According to the operating system in question, the update process also varies.

openEuler, based on the CentOS distribution uses RPM packages by default and the DNF package manager. So, in this article, we will take a look at updating the openEuler system properly.

In this method, we will use the DNF package manager and its configuration file to update the packages in openEuler.

Check the DNF configuration file

In openEuler, you can find the DNF configuration file at /etc/dnf/dnf.conf. We need to edit this file to change the behavior of DNF command.

sudo nano /etc/dnf/dnf.conf

You can see that there are some lines already written in this file.

Default DNF configuration in openEuler
DNF Configuration

Here, if you have a fast internet connection, you can download multiple packages at once. To make this possible, add the following line at the end of the file.

max_parallel_downloads=10

That’s it. Save the file using CTRL+O and exit nano editor using CTRL+X.
Now, open a terminal and run the command:

dnf check-update

This will check for any package updates available and print the list.

Update checking in DNF using the check-update command. This will print if any possible package update is available.
DNF Check for updates

If you have updates available, run the command:

sudo dnf update

This will download the update packages and install it to the system. Once it is finished, reboot the system.

sudo reboot

That’s it. You have updated the system.

There are various GUI package managers available for you to use. Here, we wil take a look at using the GNOME Software to update packages in openEuler.

If you don’t know, openEuler provides a way to install GNOME desktop environment if you love it. In that case, GNOME Software comes preloaded for you.

If you are a UKUI user, install GNOME Software using:

sudo dnf install gnome-software

This installed some 30 packages to the system. Once installed, open it.
You will see a message that the GNOME software is downloading software catalog.

GNOME Software is downloading software catalog. Wait for some time to let this process complete.
GNOME Software downloading software catalog

Wait for the process to complete. Now you can see the GNOME Software interface. Go to the Updates tab.

Go to the Updates tab in GNOME Software. It is located in the right side on top panel in GNOME Software application. This is the place where you can see the available package updates.
Click on Updates in GNOME Software

Here, you can see all the updates available. Use the top-left refresh button to check if there are any updates available.

Software updates can be checked using the GNOME Software application.
Updates Section

Here, Flatpak app updates will also be listed, if you have Flatpak support enabled.

Similar Posts