Find the answer to your Linux question:
Results 1 to 6 of 6
I was wondering how you actually clean up source installs? I usually leave the extracted folders on my box. Since you run make install in these to install the software ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416

    cleaning up source installs


    I was wondering how you actually clean up source installs?
    I usually leave the extracted folders on my box. Since you run make install in these to install the software I guess this is where you run make uninstall to get rid of it. I assume make uninstall is the one you need.

    Now, how do I do an uninstall if my source folder is gone? Also, how differs make clean from make uninstall?

    Cheers
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    "make uninstall' will get rid of the binary files and libs that you just compiled. If you want to get rid of the source directory, you can simply delete it and it will not effect the installed binaries. I usually compress the source directory and gzip them using "tar -xzf" just in case I need to recompile them at a later time.
    The best things in life are free.

  3. #3
    Linux User
    Join Date
    Jun 2003
    Location
    Huntington Beach, CA
    Posts
    390
    Make uninstall uninstalls anything it installed outside the directory, and make clean undoes any changes to the directory, like any make or config files or whatever.

  4. #4
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Right,,
    I mean to say "make clean." I apologize for this error.
    The best things in life are free.

  5. #5
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    thanks guys,

    So would I still be able to uninstall if the extracted folder is gone?
    For example, Can I use "make uninstall programname" to get rid of a program after deleting the extracted folder?
    If not, what would be the way to go.
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

  6. #6
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Nope. Well, if you remember where the program files are installed, than you can. This is one reason to keep that source directory tarred and gzipped like I stated. Another thing you should be able to to do is just keep the makefile. Theoretically, that should be sufficient. Finally, you can just copy the commands under the target clean inside the makefile. The bad thing about this might be if the makefile uses lots of variables. Then you would have to look them up and set them acoordingly.
    The best things in life are free.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •