Skip to content

Commit

Permalink
add workaround to accept key into dnf database
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Aug 18, 2023
1 parent bfca925 commit cac9779
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr/bin/dist-installer-cli
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,11 @@ gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
' | root_cmd tee /etc/yum.repos.d/oracle.repo

## dnf does not have a command to accept add the key to its database.
## https://bugzilla.redhat.com/show_bug.cgi?id=1768206
## Workaround to accept the key with --assumeyes without accepting other things.
root_cmd dnf --assumeyes module list
fi
}

Expand Down

0 comments on commit cac9779

Please sign in to comment.