Skip to content

Commit 5c94edc

Browse files
committed
fix: Use option to disable local package gpg check when installing with dnf
Closes #797
1 parent fb03241 commit 5c94edc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ packaging:
8686
- libiconv 1.18
8787
* Update MacOSX packages to use OpenSSL 3.4.0
8888
* fix #816: Support --delaytime option in linux perl installer
89+
* fix #797: Use option to disable local package gpg check when installing with dnf
90+
in linux perl installer
8991

9092
1.11 Tue, 24 Sep 2024
9193

contrib/unix/installer/RpmDistro.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ sub install {
136136
$self->_prepareDistro();
137137
my $command = $self->{_yum} ? "yum -y install @rpms" :
138138
$self->{_zypper} ? "zypper -n install -y --allow-unsigned-rpm @rpms" :
139-
$self->{_dnf} ? "dnf -y install @rpms" : "";
139+
$self->{_dnf} ? "dnf -y install --setopt=localpkg_gpgcheck=0 @rpms" : "";
140140
die "Unsupported rpm based platform\n" unless $command;
141141
my $err = $self->system($command);
142142
if ($? >> 8 && $self->{_yum} && $self->downgradeAllowed()) {

0 commit comments

Comments
 (0)