I have a custom built rpm package which I installed manually (via rpm -Uvh / or yum localinstall). If I do an upgradee from CentOS5 to CentOS6 this package is removed and, because it missing in the official repo, will be not installed again. This package is compatible with CentOS5/6.
If I install this package manually after the upgrade, the content of its config folder is overwritten by default conf.
I've used google and found some solutions, please review and correct:
to skip removing the package during upgrade:
- include the package name in /etc/yum/protected.d/protected.conf - doesn't work!
- add "exclude=packagename" in /etc/yum.conf - doesn't work!
to keep previous config:
- install-options --excludepath
Questions:
- how to keep this package from being removed?
- how to keep old package's configuration?
- why the yum remove an "alien" package in first place?