How to Uninstall a Program in Linux

By Kristen Waters

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.

Step 1

Click on the program and choose uninstall in the graphical package manager if the program was installed via the package manager.

Step 2

Issue the command "rpm -e program_name" if the program was installed via an .rpm file.

Step 3

Type the command "sudo dpkg -r program_name" if the program was installed via the Debian package manager(.deb).

Step 4

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".

Step 5

Issue the command "yum remove program_name" if the program was installed from the command line via the yum utility.

Step 6

Enter the directory that holds the make files and type "make uninstall" if the program was installed from source code.