uninstalling a .tar.gz installed file???

Discussion in 'Open Source' started by legolas, Mar 2, 2006.

Thread Status:
Not open for further replies.
  1. legolas

    legolas New Member

    Joined:
    Feb 8, 2005
    Messages:
    959
    Likes Received:
    0
    Trophy Points:
    0
    hi,.

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

    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

    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
     
  2. praka123

    praka123 left this forum longback

    Joined:
    Sep 7, 2005
    Messages:
    7,513
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    -
    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
    http://www.tldp.org/linuxfocus/English/December2004/article360.shtml
     
  3. Satissh S

    Satissh S New Member

    Joined:
    Mar 23, 2005
    Messages:
    692
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Chennai , India
    @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.
     
  4. eddie

    eddie El mooooo

    Joined:
    Jan 26, 2006
    Messages:
    1,414
    Likes Received:
    14
    Trophy Points:
    0
    Location:
    India
    Why will it not be safe? :?
     
  5. praka123

    praka123 left this forum longback

    Joined:
    Sep 7, 2005
    Messages:
    7,513
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    -
    because a lazy uninstall script may delete /usr/lib or /usr/local dir. (just saying a chance is there)
     
  6. eddie

    eddie El mooooo

    Joined:
    Jan 26, 2006
    Messages:
    1,414
    Likes Received:
    14
    Trophy Points:
    0
    Location:
    India
    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.
     
Thread Status:
Not open for further replies.

Share This Page