CentOS / RHEL: yum Command Reinstall Package

ww‮uttual.w‬ri.com
CentOS / RHEL: yum Command Reinstall Package

To reinstall a package using the yum package manager on CentOS or RHEL, you can use the yum reinstall command followed by the name of the package. For example:

sudo yum reinstall package_name

This will reinstall the package and any dependencies that are required for the package.

If the package is already installed on your system, yum will first uninstall the package and then reinstall it. If the package is not installed, yum will install it.

Note: The yum reinstall command will not update the package to the latest version. To update a package to the latest version, you can use the yum update command followed by the name of the package. For example:

sudo yum update package_name

This will update the package to the latest version that is available in the configured repositories.

You can also use the yum update command without specifying a package name to update all packages on your system to the latest versions. However, this is generally not recommended, as it may cause unexpected changes or breakages on your system. It is generally a good idea to update packages individually or in small groups to reduce the risk of such issues.

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