I inherited a legacy development system which is poorly documented and the source code is not known if it still is available. Now I could locate some of the source code and actually build one part of the system. I wonder if I can find the rest of the source code and if there is any better way than locate *.c and manually inspecting the files (that's how I found part of the code). There are 3 machines and only one where I found the source code that seems to be a development machine. It also has 61 .deb archives that seems to be the packaged versions of the projects, but looking into the .deb archives shows that the source is not in the archives or at least not where I looked. Is there a good way to scan an entire drive for source code?
How to locate missing C code
debian
This wont answer your more general question, but in your specific case, since you have packages on the system, its worth looking for the corresponding source code:find / -name \*.orig.tar\* -o -name \*.dscThis will look for source archives named in the way the Debian package building tools expect, and source package control files. If you find those, look for .debian.tar* or .diff.gz files alongside them. All these files combined would give you the source code and the build rules, along with all the package metadata.You could also look for unpacked control files:find / -name controlThese would typically live in the debian subdirectory of a packages source, which should contain everything you need to rebuild the package from source.