0
1
Here are the steps I took:
- Create RPM
- Install rpm via "rpm -i" (this creates /opt/foo and unpacks files into it)
- Modify some files under /opt/foo/ (rename, append data, etc.)
- Uninstall rpm via "rpm -e"
And the observed behavior:
All files under /opt/foo are removed except for the ones that were modified. /opt/foo remains as well.
How can I force delete /opt/foo and all of its content even if it was modified after the initial installation?
Thanks a bunch!
Thanks for the reply! Am I doing something wrong? I ran "sudo rpm --rebuilddb" and then "sudo rpm -e <name>", but the files are still present :( – Timtam – 2014-09-17T05:36:37.423
Since you already tried to remove the package previously, there is nothing in the database to rebuild, so the command doesn't do anything. If you use the -v flag, you should see what is actually happening. To remove the files and directory now is best done by deleting from the command line. – LDC3 – 2014-09-18T01:13:26.507