It really depends on how you installed it. If you used a package manager (i.e. rpm), there is probably an "uninstall" option (either as a command line flag or within the menu interface).
If you compiled from source and used "make install" to do the installation, then you can use "make uninstall" if there is code for that in the Makefile. Otherwise, you're on your own for figuring out from the Makefile what the install did - then reversing that if possible.