How to patch update Suse Enterprise Linux server command?

Use the zypper to patch update Suse Enterprise Linux

zypper is a command line for software management. Both SUSE Enterprise Linux and OpenSUSE use the zypper command. We can use zypper for the following purpose:

  1. Install new software
  2. Update software
  3. Remove or delete unwanted software
  4. Manage repositories
  5. Perform various queries and more.

Syntax

The syntax is as follows:


zypper command
zypper [options] command
zypper help command

Let us see the common zypper commands:

How to refresh all repositories

$ sudo zypper refresh

How to list available updates on SUSE Enterprise Linux server

We need to see all applicable patches run:


zypper lp
zypper list-updates

How to update installed packages with newer versions

Let us patch update Suse Enterprise Linux server, execute:


$ sudo zypper update

Please note that there are some running programs that might use files deleted by the recent upgrade. You may wish to check and restart some of them. Run the following command to list these programs:


$ zypper ps -s


You can restart those services using the systemctl command:


$ sudo systemctl restart sshd

 

Reboot the box

First note down the currently running Linux kernel version:


$ uname -mrs

You must reboot the box for the SUSE Enterprise Linux kernel update:


$ sudo reboot

OR
$ sudo shutdown -r now

Verify new Linux kernel version after the system reboot:

 

$ uname -mrs

 

Done, SUSE Enterprise Linux Server version 12 SP3 is patched and updated.

Was this answer helpful? 0 Users Found This Useful (0 Votes)