CentOS/RHEL v5/6 Update Command

ww‮ruttual.w‬i.com
CentOS/RHEL v5/6 Update Command

To update the software packages on a CentOS or Red Hat Enterprise Linux (RHEL) system, you can use the yum package manager.

  1. Update the package list by running the following command:
sudo yum update

This will update the package metadata to reflect the latest available versions of the packages.

  1. Upgrade all packages to the latest available version by running the following command:
sudo yum upgrade

This will download and install the latest available versions of the packages that are currently installed on your system.

  1. If you want to update a specific package to the latest available version, you can use the yum update command followed by the package name. For example, to update the httpd package:
sudo yum update httpd
  1. To update all packages except for a specific package, you can use the yum --exclude option followed by the package name. For example, to update all packages except for the kernel package:
sudo yum update --exclude=kernel*

This will update all packages except for the kernel package and any packages that depend on it.

Note: These steps will update the packages on your system to the latest available versions. It is a good idea to make a backup of any important data before updating the packages, as there is a risk of data loss or corruption during the update process. It is also a good idea to test the updates in a staging environment before deploying them in a production environment.

Created Time:2017-10-16 14:38:41  Author:lautturi