How to Update Suse Linux with Zypper

This post will guide you how to patch update Suse Linux. How do I patch and update Suse Linux with zypper tool.

Patch Update Suse Linux


You can use the zypper tool to install or update packages in Suse or OpenSuse Linux. To update Suse software, just type the following command:

# zypper update

This command will update all patches that are available in your repositories.

Installing Packages with Zypper


you can use the Zypper tool to install a package from the registered repositories, type:

# zypper install package_name

Removing Packages with Zypper


You can also use the Zypper tool to remove or delete a package in the current Suse Linux, type:

# zypper remove package_name

List all Repos with Zypper


you can use the zypper tool to list all repositories in the system, type the following command:

#zypper repos

outputs:

# | Enabled | Refresh | Type  | Alias             | Name
--+---------+---------+-------+-------------------+-------------------
1 | Yes     | Yes     | yast2 | openSUSE-DVD 11.0 | openSUSE-DVD 11.0
2 | Yes     | No      | yast2 | Main (OSS)        | Main (OSS)
3 | Yes     | No      | yast2 | Main (Non-OSS)    | Main (Non-OSS)

Install patches via CVE# using Zypper


You can use the Zypper tool to install patch to address a specific CVE (such as: CVE-2017-5715), just do the following steps:

#1 list the patch for a specific CVE#

Type:

# zypper lp --cve=CVE-2017-5715

#2 get information about this CVE patch

# zypper info -t patch patchname

#3 install the patch using the CVE#

# zypper patch --cve=CVE-2017-5715

 

You might also like:

Sidebar



back to top