How to patch update Suse Enterprise Linux server command
How do I patch and update Suse Enterprise Linux server from the command line option over ssh based session?
You need to use the zypper command to keep your system secure and upgrade installed packages including security updates. This page shows how to patch update Suse Enterprise Linux server version 12 SP 3.
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:
Install new software
Remove or delete unwanted software
Perform various queries, and more.
The syntax is as follows: zypper command zypper [options] command zypper help command Let us see common examples of zypper command.
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 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
The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.