Carlos E. R. wrote:
I compile from source quite a number of programs, and they tend to occupy a fair amount of disk space. After installation, a "make clean" gets free of most of it. I would like to remove anything that came with the original source tar.gz file, but keep my added or modified files in the directory.
So, the question: is there an easy way to compare a directory with the archive.tgz it came from, and remove anything that is the same as contained in the said tar? Maybe someone has done this before.
(It might be on the "info tar" but it is complicated reading ;-) )
You could try creating a patch file. This is fairly standard. The obvious way would be to create two copies of the files: original and modified and use diff -r to create the patch. Then use gunzip to compress the patch. You may be able to create a patch file directly from .tgz files: I haven't checked. See man pages for diff and patch -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.