remove rpm but retain specific folder
Hi Linux Guru's
just want to ask if is there a way to uninstall an rpm but retain a specific folder inside the directory? Lets say I have an opscenter.rpm installed and the files are residing on /opt/opscenter. Inside /opt/opscenter there is a conf folder. I would like to retain the /opt/opscenter/conf whenenver I want to try uninstalling the opscenter.rpm |
Isn't this the default behavior of most (all?) package managers? To remove only the files installed and leave all the files that were altered or not part of installation?
|
Quote:
yes like issuing "rpm -e <package_name>" removes /opt/opscenter directory. I would like to have /opt/opscenter/conf to be left intact after the uninstall command |
I do not use RPM based distro, have you checked the manual page for rpm?
|
Is it as simple as copying the folder prior to issuing the uninstall command?
|
Quote:
Thanks all |
All times are GMT -5. The time now is 09:22 AM. |