Install hBlock on Fedora 36

Hi,

I’m trying to install hBlock:

The curl install command on the README, when I enter it complains about “no shasum”. On Fedora systems this is “sha1sum”. But when I change the curl command part from “shasum” to “sha1sum” it throws a different error saying sha1sum: 'standard input': no properly formatted checksum liines found.

Anyone know how I can install this on Fedora?

I’m on Fedora 36 with XFCE base.

1 Like

You need shasum command, not sha1sum. Install it with:

sudo dnf install perl-Digest-SHA

To find out which package provides a missing command:

sudo dnf provides shasum

Maybe that should be sudo dnf provides */shasum since that is a command file.

1 Like

If dnf can’t find a match, it assumes that the given argument is a system command and prepends it with /usr/bin/ and /usr/sbin/, one at a time. */name will match every file, including commands in /usr/bin and /usr/sbin, but also any other file with the given name.

This is good to know but appears to apply to commands only in those standard locations.

Using */filename or the full path is however necessary if the user is trying to find out what provides a library or config file or any other system file that is not located in /usr/bin or /usr/sbin for example.

1 Like