LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-13-2006, 09:13 AM   #1
kosmognov
LQ Newbie
 
Registered: May 2003
Distribution: suse 9.0, Slack 9.1, Mandrake 10, etc...
Posts: 23

Rep: Reputation: 15
how to uninstall non-packaged software


Hi again,

this thread is a reformulation of my last post (http://www.linuxquestions.org/questi...d.php?t=444094)


To make this question simple:

- How do I uninstall non-packaged software?

after:
- make; make install

make clean should work. But where did it install it to? what to do when the software did not provide a make clean rule?

what does the installation process actually does? is this a simple copy to various folders? how can I completely remove something?

Thank you,
ricardo
 
Old 05-13-2006, 09:41 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
1. make clean does not usually clean installed software
2. sometimes make uninstall or something does
3. installation process can include rather complicated things, for example renaming old files.

Try make_uninstall - program, monitoring file operations during make install and providing possibility to rollback.
 
Old 05-13-2006, 09:52 AM   #3
kosmognov
LQ Newbie
 
Registered: May 2003
Distribution: suse 9.0, Slack 9.1, Mandrake 10, etc...
Posts: 23

Original Poster
Rep: Reputation: 15
so make install is basically irreversible unless the software provides a rule to uninstall? by monitoring the instalations do u mean write down every file and folder where the software copied stuff to? and then just deleting those files and folders?
 
Old 05-13-2006, 10:10 AM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
You should alwasy check if there is an uninstall target before installing from sources unless you are willing to delete the installed files by hand.
 
Old 05-13-2006, 10:40 AM   #5
kosmognov
LQ Newbie
 
Registered: May 2003
Distribution: suse 9.0, Slack 9.1, Mandrake 10, etc...
Posts: 23

Original Poster
Rep: Reputation: 15
thanks for the tip.

Just another thing. How hard would it be to write a script that would keep a track off every file that gets written/replaced and use that to create a list of files to use for an uninstall? maybe extract the TO properties from the make install file?

I could possibly do it in java since this is the only language I know. As I am trying to learn C++ I recon I could start here if someone is willing to develop this with me. Thanks
 
Old 05-13-2006, 11:37 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Rather than writing your own, I would suggest considering checkinstall. This program replaces the make install step and can create Slackware .tgz, Red Hat .rpm and Debian .deb packages that you can then install and uninstall with the normal distro package management system.
 
Old 05-13-2006, 12:08 PM   #7
kosmognov
LQ Newbie
 
Registered: May 2003
Distribution: suse 9.0, Slack 9.1, Mandrake 10, etc...
Posts: 23

Original Poster
Rep: Reputation: 15
thank you very much... ill give it a try.
 
  


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
How do you uninstall software which doesn't have an uninstall-file? lagu2653 Linux - Software 2 12-08-2005 01:36 PM
Why is commercial software for linux so badly packaged ? dukeinlondon Linux - Software 30 01-09-2004 03:52 PM
how to uninstall a software puru_09 Linux - Software 2 12-03-2002 12:04 AM
How do I 'Uninstall' software? Brad Linux - Software 3 05-13-2002 10:33 AM
how to uninstall software? croger Linux - Software 2 05-11-2002 09:20 AM

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

All times are GMT -5. The time now is 10:36 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
Open Source Consulting | Domain Registration