One of the things that I still can’t wrap up is the rules for uninstalling programs in * nix environments. Most of the time, I am happy to let sleeping dogs lie, and not remove software that I no longer need. But from time to time I end up with a few Apaches, svn, etc.
So far I know about this:
1) if you installed using apt-get or yum, run the uninstall command. A script is rarely deleted somewhere in the application folder, something like uninstall.sh
2) to find out which specific installation is invoked from the command line, use the command "type -a"
3) use "sudo find / | grep" to find where else the material can be installed (from what I understand, the type searches only for things that are in the PATH variable)
4) Add / change the order of things in PATH to make the desired version of the application first in the line or add an alias to .bashrc
5) delete the things that I no longer want. This is easy if the application was installed in only one folder, but difficult if there are several. One trick I've heard about works with a time range search to find all files that changed the installation time — it roughly shows what has been changed and added.
Do you have something to add / fix?
source
share