wong_powah.TakeThisOut@yahoo.ca wrote:
> I created a rpm (.spec file) to install a program and create a
> symbolic link to it. After I do "rpm -e" to remove the package, the
> program and symbolic link still exist, how to fix this problem?
If that program and symbolic link are listed in %files section, _and_
they are not owned by some other package, then 'rpm -e ...' should
remove those things. You can try 'rpm -e -vvv ...' to watch what
happens and that may give you clues.
If you created elements above in %post scripts then you have to remove
those in %preun or %postun. You have to be careful then not to clobber
what should be left if you are updating.
One possibility for a file to end up in multiple installed packages is
when you have duplicates and that is the easiest to get by updating
packages with broken package scripts.
Michal