LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2006, 08:43 AM   #1
snoozing
Member
 
Registered: Jan 2006
Posts: 38

Rep: Reputation: 15
Uninstalling a Linux App


After creating a HelloWorld with KDE I wonder what kind of surgery is necessary to UNinstall the application.

No Windows style registry here that I can see. Just wipe out the place where all the files went? Like when I did > configure prefix=/oink just destroy anything under /oink?

That simple?
 
Old 02-09-2006, 09:20 AM   #2
ride153
Member
 
Registered: Apr 2005
Location: Northeast USA
Distribution: current is PCLOS (server) and Suse (desktop)
Posts: 102

Rep: Reputation: 15
usually just delete directory but links and may be a temp .app folder may still exist in your home directory
 
Old 02-09-2006, 09:25 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
If you still have the source directory you compiled from, generally 'make uninstall' will do the job neatly.
 
Old 02-09-2006, 11:01 AM   #4
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Rep: Reputation: 15
I was hoping that if one kept the source directory that should do the trick. A couple of questions about this...

Is it a common practice to keep those archived on the server for the purposes of uninstalling? What if you have deleted the original source you used to build the application, does that mean it can't uninstall? I understand that one might configure with different options, but I would be interested if it could at least do a basic uninstall of the base parts of the package. Or perhaps it would just be easier to then recompile and install the app over itself and then do a make uninstall? Mainly I am concerned with all the edits it makes to various scripts, like rc.d stuff and halt and what not.
 
Old 02-09-2006, 11:50 AM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
For something more than a casual workstation I would say its more common to build packages that can be used by your distro's package manager from source rather than just do a `make install`.

If you kept the original source that you compiled, then the options you used would be stored and `make uninstall` would know which files to delete unless of course you did a `make clean` beforehand. Also remember quite a few programs' Makefiles don't include functionality to do a `make uninstall`, apache being a good example.

Recompiling the source and reinstalling may or may not overwrite configuration files, depends on the developers. Ideally no configuration files would be overwritten and the new ones would be named <config file>.new but this doesn't always happen.
 
Old 02-09-2006, 12:46 PM   #6
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Rep: Reputation: 15
Quote:
Originally Posted by phil.d.g
For something more than a casual workstation I would say its more common to build packages that can be used by your distro's package manager from source rather than just do a `make install`.

If you kept the original source that you compiled, then the options you used would be stored and `make uninstall` would know which files to delete unless of course you did a `make clean` beforehand. Also remember quite a few programs' Makefiles don't include functionality to do a `make uninstall`, apache being a good example.

Recompiling the source and reinstalling may or may not overwrite configuration files, depends on the developers. Ideally no configuration files would be overwritten and the new ones would be named <config file>.new but this doesn't always happen.
If I understand correctly you are suggesting that if I am using Red Hat that I should create an RPM out of the source? Is that something that I would run through the package manager, or an argument I would use when compiling or making the application?

And thanks for the info on best practices...
 
Old 02-09-2006, 12:53 PM   #7
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by laggerific
If I understand correctly you are suggesting that if I am using Red Hat that I should create an RPM out of the source?
Yes!

I assume redhat rpm package would have some tools to help you build your own rpm packages. You'll have to search google for a tutorial on how to build them, I've never built an rpm package, I use slackware so build slackware packages when required
 
  


Reply


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
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 03:34 AM
uninstalling linux pete_chua Linux - Software 3 07-27-2005 06:26 PM
uninstalling linux waqer Linux - Newbie 3 12-23-2004 03:52 AM
Uninstalling Linux Oostertoaster Linux - General 4 12-19-2004 01:38 AM
uninstalling linux OneDragonWon Linux - Newbie 10 05-11-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration