Skip to content

dnf upgrade of release rpms need --nogpgcheck #4961

Description

@nlaphine

URL of the document

https://docs.theforeman.org/3.19/Upgrading_Project/index-katello.html

Optional: Copy-paste the text you are reading

2.1. step 2

dnf upgrade https://yum.theforeman.org/releases/3.19/el9/x86_64/foreman-release.rpm \
https://yum.theforeman.org/katello/4.21/katello/el9/x86_64/katello-repos-latest.rpm

Describe the issue

2.1. step 2 fails everytime i do this procedure

dnf upgrade https://yum.theforeman.org/releases/3.19/el9/x86_64/foreman-release.rpm \
https://yum.theforeman.org/katello/4.21/katello/el9/x86_64/katello-repos-latest.rpm
...
Public key for foreman-release.rpm is not installed
Public key for katello-repos-latest.rpm is not installed
Error: GPG check FAILED

I then have to edit the line

dnf --nogpgcheck upgrade https://yum.theforeman.org/releases/3.19/el9/x86_64/foreman-release.rpm https://yum.theforeman.org/katello/4.21/katello/el9/x86_64/katello-repos-latest.rpm

Anything else to add? (context, suggestions for a fix, etc.)

I also think all these lines should have sudo on them for ease of copying and be inline with current security guide lines but not necessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Red Hat Jira

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions