Server Patching using yum in Linux

Linux has different ways to update all packages. It is a very important task, so we have to perform this task with care. Before updating the packages you need to take backup of your data. The exact command depends upon your Linux distribution:

Linux Patching

1. Debian/Ubuntu – apt-get command
2. CentOS/RedHat/Fedora – yum command
3. Suse/OpenSUSE – zypper command

1. Debian/Ubuntu – apt-get command

Run the following command to update the the packages.

$ sudo apt-get update
$ sudo apt-get upgrade

2. CentOS/RedHat/Fedora – yum command

Run yum command to update all the packages in CentOS/RedHat/Fedora.

# yum -y update

3. Suse/OpenSUSE – zypper command

Run zypper command to update all the packages

# zypper refresh
# zypper update

Enjoy it!

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.