How to reinstall Foreman with Katello

Problem:
Hi, I have Foreman 1.20 and puppet 5 installed on CentOS 7 and I see that Katello does not currently support installation on existing Foreman.

I also need to use cockpit plugin intergrated in remote execution so I need to remove Foreman 1.20 and install Foreman 1.24 with Katello 3.14 version but the puppet 5 needs to be remained because it’s in use!

What I tried is…

  • stop Foreman services with formain-maintain
    List applicable services:
    dynflowd.service enabled
    foreman-proxy.service enabled
    httpd.service enabled
    postgresql.service enabled
    puppetserver.service enabled
    smart_proxy_dynflow_core.service enabled

  • remove all foreman related packages with dependencies (used --remove-leaves option to remove dependencies)

  • then I tired to reinstall
    Foreman 1.24
    Katello 3.14

  • I get errors
    /usr/share/gems/gems/kafo-4.0.0/lib/kafo/data_type.rb:31:in `register_type’: Data type Apt::Auth_conf_entry is already registered, cannot be re-registered (ArgumentError)

I couldn’t find a simple way to remove Foreman.
I have no idea how to resolve this problem…
is there any possible way to completely remove foreman and reinstall?

Expected outcome:
Foreman 1.20 --> 1.24
Katello 3.14

Foreman and Proxy versions:
1.20

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data: