I'm trying to reinstall a package on CentOS: yum reinstall packagename
however I can still see the changes that I made in the config files from this package.
Is there a way to force the re-load of the package and its config files?
You can use the yum command with reinstall option. This will reinstall the identically versioned package as is currently installed.
The syntax of “yumdownloader” utility to download RPM along with its dependencies is: # yumdownloader [options] package1 [package2] [package..] For example, to download the RPM “firefox” and all its dependencies, use the beow command.
Check to see whether the reinstall of the package also created the config files with filenames ending with ".rpmnew". If such files exist, they will be the unmodified versions of the files.
If that is not the case, can you perform the package reinstallation in the two steps instead of one? That is, first do yum remove packagename
and then do yum install packagename
.
If neither of the above will do the trick, the simplest way to solve the problem is to rename or remove the config files and then do the yum reinstall.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With