Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This question already has an answer here:

Is it safe to remove the downloaded tar once the program is installed (once I run ./configure, make, make install)?

share|improve this question

marked as duplicate by Gilles, Ramesh, terdon Jun 26 at 0:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers 2

up vote 5 down vote accepted

Yes, and no.

Removing source file won't affect installed binaries and other resources,

But you should keep them, in case you need to rebuild them. i.e when system libraries updated, it's likely for you to rebuild / re-link the binary

share|improve this answer
    
So when you rebuild everything is overwritten? –  saadtaame Mar 9 '13 at 13:27
    
@saadtaame yes you can override the installed binaries, provided the --prefix is the same value (Which controls the installation prefix) –  warl0ck Mar 9 '13 at 13:49
    
If make uninstall is supported, that's another (minor) reason. Given the typical convoluted autoconf generated Makefile, it's not usually trivial to work out which bits you need for that. –  mr.spuratic Mar 9 '13 at 14:25
1  
asic-linux.com.mx/~izto/checkinstall is a useful tool for generating a package, allowing you to uninstall more easily at a later time. –  Hennes Mar 10 '13 at 14:57
add comment

Also, sometimes packages install stuff in directories called by the version. It is wise to keep the sources around to be able to find out what was installed to clean up later.

But probably the best course of action is to create a proper package for your system, and install that. The package management system will then keep care of dependencies, and handle updates. Yes, creating the package means tracking down the dependencies and other data, but that is something that has to be done anyway sooner or later.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.