Getting the source for something that doesn't seem to have an associated package?

I lately simply intended to consider the source code for sha1sum.

[email protected]:~/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 point I did was to read the guidebook. The hand-operated stated coreutils. Yet I do not see anything like sha1sum.c, and also there is no affiliated Debian plan for sha1sum, regarding I can inform.

What should I be doing to get the source code for this tiny, standard program without needing to make use of an internet search engine, from the ease of my covering?

1
2022-06-07 14:34:51
Source Share
Answers: 1

First, locate which plan the documents is from:

% dpkg -S /usr/bin/sha1sum
coreutils: /usr/bin/sha1sum

And after that install the source:

% apt-get source coreutils
3
2022-06-07 14:54:44
Source