DIGIT-ARC read-only archive · snapshot: July 23, 2026

uninstalling a .tar.gz installed file???

6 posts · originally from https://geek.digit.in/community/threads/uninstalling-a-tar-gz-installed-file.24761/

L
legolas Original post #1
Mar 2, 2006 at 2:44 PM
hi,.

I am using Fedora Core 4 Linux. I downloaded a .tar.gz package and used the commands

legolas said:
tar xvfz <filename>.tar.gz

followed by....

./configure
make
make install

and it has installed the whole thing. now i wanted to uninstall it!! i can delete the directory where i created, but it has created the installation files in

legolas said:
/usr/local/include/.... path

how do i remove all the files installed using the configure, make and make install completely.... if its rpm, then i use rpm -e <package name> ..... i am a newbie in this... pls suggest me a solution!

thk u,
legolas
praka123
Mar 2, 2006 at 3:17 PM
first there is not any easy way.if the maintainer provided "make uninstall" U can uninstall from the compiling directory(that may not be safe).for this U read README or INSTALL file in the source package.
Another way is to install "checkinstall" package.after install try "man checkinstall" for more details,it usually makes an rpm or deb so that u can install and uninstall.for eg:
Code:
foobar package
cd foobar
sarge:~# ./configure
sarge:~# make
sarge:~#checkinstall -R (for rpm)
thus u can uninstall that rpm by rpm -e foobar.

Download here
*www.tldp.org/linuxfocus/English/December2004/article360.shtml
Satissh S
Mar 2, 2006 at 10:38 PM
@legolas: Most programs now come with a uninstaller script with install and configure scripts. You can use that.
cd into source <dir> and run,
#./uninstall
Or a bad way to do it, just locate the directories using
# locate <name of the program>
Most prolly, /usr/local/* or /usr/share/*
# rm -R <dir name>
# rm /usr/bin/<name_of_the_program>
To delete the symlink.
eddie
eddie #4
Mar 4, 2006 at 9:37 AM
prakash kerala said:
first there is not any easy way.if the maintainer provided "make uninstall" U can uninstall from the compiling directory(that may not be safe).
Why will it not be safe? :?
praka123
Mar 4, 2006 at 11:27 AM
eddy said:
Why will it not be safe? Confused
because a lazy uninstall script may delete /usr/lib or /usr/local dir. (just saying a chance is there)
eddie
eddie #6
Mar 4, 2006 at 5:48 PM
I don't think ANY uninstall scripts deletes the directories with a recursive switch. Even programs like checkinstall use uninstall part of Makefile while making rpm/tgz etc, so it is as safe as the uninstall part of Makefile.