How to Uninstall a Program in Linux
Linux has many ways to install programs. The graphical package manager, RPMs, the Debian package manager, the apt and yum utilities, and compiling directly from source code are the most popular methods. Uninstalling a program depends on the way you installed the application in the first place. In order to complete the process, you must know the way the program was installed and the exact name of the program. The following steps explain the uninstall process and commands for each of the most popular installation methods.
Click on the program and choose uninstall in the graphical package manager if the program was installed via the package manager.
Issue the command "rpm -e program_name" if the program was installed via an .rpm file.
Type the command "sudo dpkg -r program_name" if the program was installed via the Debian package manager(.deb).
Enter the command "sudo apt-get remove program_name" if the program was installed from the command line via the apt utility. This command only removes the program while leaving the configuration files behind. If you want to totally remove the program and all of its files, use the command "apt-get --purge remove program_name".
Issue the command "yum remove program_name" if the program was installed from the command line via the yum utility.
Enter the directory that holds the make files and type "make uninstall" if the program was installed from source code.