Review your favorite Linux distribution.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 12-07-2006, 04:32 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
how to uninstall a application

how to uninstall an application under linux system.
please help me.
Old 12-07-2006, 04:44 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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
make uninstall
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, ...
Old 12-07-2006, 04:45 AM   #3
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
This is different for different systems, and it depends on the application as well as how it was installed.

More information needed.

Sometimes it is just a matter of deleting the application binary.

If the application was installed from source, there may be a make uninstall option in the makefile... otherwise you have to walk through the install steps, removing files in reverse order they were added.

If the app was installed via a package manager gui (say, YaST, YOU, YUM, Synaptic, etc) then the managers documentation will tell you about the "uninstall" or "remove" method.

CLI package managers (rpm, aptitude, etc) also have "remove" or "uninstall" options. Again, check the program documentation.

Otherwise, you'll have to be more specific.
What are you trying to remove, and what have you tried?
Old 12-07-2006, 05:30 AM   #4
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 216

Rep: Reputation: 35
If the package (software) is an .rpm, you can uninstall it by doing
rpm -e name_of_software
Old 12-07-2006, 06:16 AM   #5
Registered: Oct 2005
Location: Madison, Wisconsin
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
It depends on which distribution you are using.

1) For (*.rpm) based distributions like Redhat, Fedora Core, SUSE, Madrake, etc, use this to get the exact program name first because, the program name is not exactly same as the the rpm file name.
rpm -qa | grep programname
Then use this to remove it.
rpm -e programname
2) For (*.deb) based distributins like Debian, Ubuntu, Mepis, etc,-)
-> To remove the program but, keep the configuration files for the program, use this
dpkg -r programname
-> To remove everything including configuration files, use this
dpkg -P programname
3) For (*.tgz) based distribtion like Slackware, use
and select the package which you wish to remove. There are more options available for Slackware which I don't remember right now. Hope this helps.

Last edited by manishsingh4u; 12-07-2006 at 06:17 AM.
Old 12-07-2006, 08:24 PM   #6
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Yeah - and ubuntu is more likely to be apt-get -remove <package name> or aptitude -remove <package name> ... then there's gentoo's "emerge" and all the rest of it.

Lets wait for jkdas12 to get back on this before giving specific advise huh? We'll only end up writing pages and pages of irrelevant material. (Possibly jkdas12 was expecting something like the windows "add/remove program" option... which exists in some distros - but only works for software installed via a distro-specific installer: like up2date in RHEL)


uninstall, uninstallation

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 12:03 PM
How do I uninstall the KlikIt! application? skydart Linux - General 6 08-24-2004 12:26 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 04:34 AM
Uninstall Application reinharw Linux - Newbie 2 04-20-2003 02:42 AM
How do I uninstall a linux application emanners Linux - General 2 06-18-2001 06:15 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration