LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 12-07-2006, 03:32 AM   #1
jkdas12
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, 03:44 AM   #2
b0uncer
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
Code:
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, 03: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, 04:30 AM   #4
fatra2
Member
 
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
Quote:
rpm -e name_of_software
 
Old 12-07-2006, 05:16 AM   #5
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
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.
Code:
rpm -qa | grep programname
Then use this to remove it.
Code:
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
Code:
dpkg -r programname
-> To remove everything including configuration files, use this
Code:
dpkg -P programname
3) For (*.tgz) based distribtion like Slackware, use
Code:
pkgtool
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 05:17 AM.
 
Old 12-07-2006, 07: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)
 
  


Reply

Tags
uninstall, uninstallation



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 11:03 AM
How do I uninstall the KlikIt! application? skydart Linux - General 6 08-24-2004 11:26 AM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
Uninstall Application reinharw Linux - Newbie 2 04-20-2003 01:42 AM
How do I uninstall a linux application emanners Linux - General 2 06-18-2001 05:15 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:47 PM.

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