TranslateProject/sources/tech/20210310 How to Update openSUSE Linux System.md
2021-03-10 08:41:38 +08:00

4.1 KiB
Raw Blame History

How to Update openSUSE Linux System

I have been an Ubuntu user for as long as I remember. I distrohopped a little but keep on coming back to Ubuntu. But recently, I have started using openSUSE to try something non-Debian.

As I keep exploring openSUSE, I keep on stumbling upon things that are slightly different in SUSE-worse and I plan to cover them in tutorials on Its FOSS.

As a first, I am writing about updating openSUSE system. There are two ways you can do that:

  • Using terminal (valid for openSUSE desktops and servers)
  • Using a graphical tool (valid for openSUSE desktops)

Update openSUSE via command line

The simplest way to update openSUSE is by using the zypper command. It provides full functionality of patches and updates management. It takes care of the file conflicts and dependency problems. The updates also include Linux kernel.

If you are using openSUSE Leap, use this command:

sudo zypper update

You may also use up instead of update but I find it easier to remember.

If you are using openSUSE Tumbleweed, use the dist-upgrade or dup (in short). Tumbleweed is rolling release distribution and hence it is advised to use dist-upgrade option.

sudo zypper dist-upgrade

It will show you the list of the packages to be upgraded, removed or installed.

Youll be notified if your system requires reboots.

If you just want to refresh the repositories (like sudo apt update), you may use this command:

sudo zypper refresh

If you want to list the available updates, you can also do that:

sudo zypper list-updates

Graphical way to update openSUSE

If you are using openSUSE as a desktop, youll have the additional option of using the GUI tools for installing the updates. This tool may change depending on which desktop environment you are using.

For example, KDE has its own Software center called Discover. You can use it to search and install new applications. You can also use it to install system updates.

In fact, KDE notifies you of available system updates in the notification area. Youll have to open Discover explicitly because clicking on the notification doesnt automatically take you to Discover.

If you find that annoying, you may disable it using these commands:

sudo zypper remove plasma5-pk-updates
sudo zypper addlock plasma5-pk-updates

I wouldnt recommend it though. Its better to get notified of available updates.

There is also the YAST Software Management GUI tool which you can use for more granular control on package managements.

Thats it. It was a short one. In the next SUSE tutorial, Ill show you some common zypper commands with examples. Stay tuned.


via: https://itsfoss.com/update-opensuse/

作者:Abhishek Prakash 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出