I recently just wanted to look at the source code for sha1sum.
alec@ROOROO:~/tmp-source-study$ apt-get source sha1sum
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for sha1sum
The next thing I did was to read the manual. The manual mentioned coreutils. But I don't see anything like sha1sum.c, and there's no associated Debian package for sha1sum, as far as I can tell.
What should I be doing to get the source code for this small, basic program without having to use a search engine, from the convenience of my shell?
sha1sum.c. It can be basically any file or multiple files providing the functionality. If you grep forsha1in thesrcfolder you will notice thatsrc/md5sum.cis the file used to compile sha1sum. Oh and jftrcoretuilsis the right package. – Ulrich Dangel Jun 12 '12 at 2:40