Install with dnf or rpm dispite missing digest disable verfication

My problem:

$ sudo dnf install  --nogpgcheck  ./hl3040cnlpr-1.1.2-1.i386.rpm 
Updating and loading repositories:
Repositories loaded.
Package                                                               Arch            Version                                                               Repository                                  Size
Installing:
 hl3040cnlpr                                                          i386            1.1.2-1                                                               @commandline                             4.6 MiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 597 KiB. Need to download 0 B.
After this operation, 5 MiB extra will be used (install 5 MiB, remove 0 B).
Is this ok [y/N]: y
Running transaction
Transaction failed: Rpm transaction failed.
Warning: skipped OpenPGP checks for 1 package from repository: @commandline
  - package hl3040cnlpr-1.1.2-1.i386 does not verify: no digest

Frankly I don´t care about the digest it should just install the package. How do I completely disable all the verfication?

I found a solution here:

sudo rpm -ivh --nodigest --nofiledigest ./hl3040cnlpr-1.1.2-1.i386.rpm 
sudo rpm -ivh --nodigest --nofiledigest ./hl3040cncupswrapper-1.1.2-2.i386.rpm 

1 Like