Patching using with yum on Linux

Linux has different methods to update all packages.  Before updating the packages we may need to take backup. The exact command depends upon your Linux distribution:

1. Debian/Ubuntu – apt-get command
2. CentOS/RedHat/Fedora – yum command

Debian/Ubuntu – apt-get command
Run the following command to update the packages.

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

CentOS/RedHat/Fedora – yum command

Note:  for Kernel Update, some places we may need to disable exclude kernel from /etc/yum.conf

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

# yum -y update

Leave a Reply

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