(response bits in-line):

On Wed, Apr 2, 2025 at 4:08 PM David Christensen
<dpchr...@holgerdanske.com> wrote:
> I would like to use the Perl module Digest::SHA256 on Debian:
> # cat /etc/debian_version ; uname -a
> 11.11
> Linux laalaa 5.10.0-34-amd64 #1 SMP Debian 5.10.234-1 (2025-02-24)
> x86_64 GNU/Linux
> # perl -e 'use Digest::SHA256'
> Can't locate Digest/SHA256.pm in @INC (you may need to install the
> The Debian package "libdigest-sha-perl" appears to be what I need:
> # apt-cache search SHA | grep 256 | grep -i perl
> libdigest-sha-perl - Perl extension for SHA-1/224/256/384/512,
> SHA-512/224 and SHA-512/256
Yes.
> But installing libdigest-sha-perl does not provide Digest::SHA256:
> # apt-get install libdigest-sha-perl
> The following NEW packages will be installed:
>    libdigest-sha-perl
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> # perl -e 'use Digest::SHA256'
> Can't locate Digest/SHA256.pm in @INC (you may need to install the
Yes, also the case.
> Comments or suggestions?
Debian bullseye 11 (currently oldstable) provides:
https://packages.debian.org/bullseye/libdigest-sha-perl
which provides Digest::SHA
As far as I'm aware, Debian bullseye 11 does not provide and has not
provided Digest::SHA256.
See also:
https://manpages.debian.org/bookworm/libdigest-sha-perl/Digest::SHA.3pm.en.html
Note the syntax will be a bit different, e.g.:
use Digest::SHA;
or, e.g.:
use Digest::SHA qw(sha256 ...);
The syntax on the functions may be different too.
Debian has provided libdigest-sha-perl back to at least 2005, see:
https://snapshot.debian.org/binary/libdigest-sha-perl/
But I'm not finding evidence Debian has ever provided Digest::SHA256.
I'd suggest using Debian's libdigest-sha-perl
and use Digest::SHA and make any needed perl code adjustments.

Reply via email to