LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-01-2005, 11:04 AM   #1
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
how do i remove a tar.gz program?


I have installed a program by tar.gz that i now want to take out completely from my pc. I read somewhere that if you type 'make uninstall' that does it. unfortunately, it does not work. can anyone please tell me how to track down and get rid of all components of this tar.gz program that i put on my system.

thanks
 
Old 09-01-2005, 11:24 AM   #2
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
http://www.linuxquestions.org/questi...hreadid=358787
Pretty much the exact same question, already answered.
 
Old 09-01-2005, 12:57 PM   #3
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Original Poster
Rep: Reputation: Disabled
in the post you said answer the question someone said you could examine the makefile, see what files it creates, and write your own "uninstall" target. please can you explain to me how to write my own 'uninstall target'?
by the way i install checkinstall now so this should not be a problem again, but i want this problem program completely removed.
thanks

Last edited by neilcpp; 09-01-2005 at 01:03 PM.
 
Old 09-01-2005, 01:22 PM   #4
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
Quote:
please can you explain to me how to write my own 'uninstall target'?
I think that post was half-joking, but it can be done.
I wouldn't actually recommend building an uninstall target though...

What I would do is view the makefile with an editor and search for a line starting with "install:"
The commands after that will show what the makefile did when you ran "make install" in the first place.
From that you can probably decipher which files it created when it was installed, and can then remove them manually.

Unfortunately if you're new to reading makefiles, they can sometimes be extremely hard to decipher. With a really complex makefile it might not even be exactly as I described

But if you're lucky, it might just be a list of copy commands like this
Quote:
cp file1 /usr/local/foo/file1
cp file2 /usr/local/foo/file2
In which case you will have an easy to read list of file locations and can easily destroy this unwanted program yourself
 
Old 09-01-2005, 01:23 PM   #5
bushidozen
Member
 
Registered: Oct 2004
Posts: 215

Rep: Reputation: 30
you could use the 'locate' command to search for all files with that program name in them then manually delete them. For example:
Code:
locate program
will give you the location of every file in your system with the name 'program' in it. Just make sure to run 'updatedb' before running 'locate' so that your system database is updated.
 
  


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
Tar.Gz program dreyes81 Linux - Newbie 7 01-16-2005 02:04 AM
Is there an rpm for mozilla 1.5 so I can do -Uvh? Can't remove 1.2.1 so I can use tar RedHatMasta Linux - Software 3 01-17-2004 09:09 AM
How do i remove a program? SykoMachine Linux - Software 5 01-04-2004 03:55 PM
how to remove installed tar files marvc Linux - Software 3 04-17-2003 07:35 PM
how to remove an installed program brian0918 Linux - Software 4 04-05-2003 01:33 PM

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

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