Introduction
You may want to reinstall a package already on the system, such as when a configuration file relating to the package is missing. Dnf/yum has a built-in feature to allow package reinstallation.
Procedure
Type the following in a terminal:
dnf reinstall [package name]
Please note that [package name] should be replaced with package you wish to reinstall, such as Apache. For example:
dnf reinstall ea-apache24
Dnf/yum will re-create the related configuration files. This can often resolve an issue related specifically to a problem with a package that is not conflict-related.
Please note that you should utilize the 'yum' command in place of dnf on CentOS 7 and CloudLinux 7 servers. DNF was not added to the operating system until version 8.
Comments
0 comments
Article is closed for comments.