LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2010, 05:19 AM   #1
sonanski
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
How I uninstall software from the LFS?


Hey, I'm still struggling with the LFS and don't understand where to find the "make uninstall" file for software I've installed that I may uninstall it.

I'm using Ubuntu 9.10 and understand installing/removing .deb packages - that's straightforward. The problem I'm having are files that end in ".sh" or ".bin" , ".run" etc. or, the tar balls I download (I guess I would be compiling from source if I use these?)

I know sometimes they have an option like "--uninstall" but not all of them do. I know about the "make uninstall" command but this is where I get confused. Let's say, for instance, I download "foo.tar.bz2", decompress it, configure, make, install - is the "make uninstall" installed into the same folder where the rest of the program is installed, or was it created in the folder where I ran "./configure"? I've been looking in the folders of installed applications and none of them have this "make uninstall" file I keep reading about.

Is there a procedure I should follow as a rule of thumb when installing from .tar file? (Once again, I'm not sure if this is called 'compiling from source' so if someone would correct my understanding it would be a great help) Is the idea to configure, make, install then delete that folder because the software is installed, or do I keep that decompressed folder for later use if I have to uninstall?

Thank you kindly for your help. My knowledge of Linux is very superficial, so please bear that mind.
 
Old 01-12-2010, 06:08 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
uninstall is a target in the Makefile. Thus, in general you would run "make uninstall" in the same directory where you ran, "./configure", "make" and "make install". In this case it is a reasonable idea to keep the untarred source directory so that you can easily run "make uninstall" at a latter time. To save, disk space you can run "make clean" after running "make install", this will preserve the information needed to later run "make uninstall".

Evo2.
 
Old 01-13-2010, 09:22 AM   #3
sonanski
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
uninstall is a target in the Makefile. Thus, in general you would run "make uninstall" in the same directory where you ran, "./configure", "make" and "make install". In this case it is a reasonable idea to keep the untarred source directory so that you can easily run "make uninstall" at a latter time. To save, disk space you can run "make clean" after running "make install", this will preserve the information needed to later run "make uninstall".

Evo2.
Good to know. I thought that might be the case. If I only knew then what I know now.

Seeing how those tars are gone what are my options? Just delete the folders? Is there a likelihood of residual files being places in other folders I would possibly have to clean?
 
  


Reply



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 delete software from lfs 6.4 cluelessme Linux From Scratch 4 03-28-2009 07:29 AM
Software RAID on LFS with 2.6+ kernel -help Arthrone Linux From Scratch 0 10-13-2008 03:25 PM
How do you uninstall software which doesn't have an uninstall-file? lagu2653 Linux - Software 2 12-08-2005 12:36 PM
Adapting software for LFS Whitesocks Linux From Scratch 2 09-08-2005 05:09 AM
LFS Questions using software from distros Nz_Boy_2004 Linux - Software 2 06-01-2004 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 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