It depends on how you installed it.
1) if it was a binary (package like .rpm or .deb or something else), use the appropriate tool; either a package manager or the binary package installer command (rpm, dpkg, apt-get, ...).
2) if you compiled the piece of software from source, it depends on the creator of the code; some sources include a special make command like
that can be executed in the source tree, but some just don't. In this case you'll just have to manually remove each installed file, and that does mean some work (there are nice tools for this type of software compilations too, that create a list of installed files during the installation - "make install" or equivalent - and you can use that information to remove the files).
To be able to help you better, you must provide more information:
- how did you install the software; was it
-preinstalled with the system (i.e. during the setup)
-installed using a package manager (yum, apt, pacman, ...)
-compiled from source (and if, then how)
-installed as a binary package using rpm, dpkg, ...