Can't install custom built kernel RPM - dnf conflicting requests

I’ve managed to compile a kernel with a specific patch to test an issue, using instructions provided at the Fedora Docs: https://docs.fedoraproject.org/en-US/quick-docs/kernel-build-custom/.

However, when I try to install the resultant RPM I get the following error:

sudo dnf install --nogpgcheck ./x86_64/kernel-6.6.7-200.anzigotest.fc39.x86_64.rpm
Identified face as anzigo
Fedora 39 - x86_64 - Updates 12 kB/s | 23 kB 00:01
Error:
Problem: conflicting requests

  • nothing provides kernel-core-uname-r = 6.6.7-200.anzigotest.fc39.x86_64 needed by kernel-6.6.7-200.anzigotest.fc39.x86_64 from u/commandline
  • nothing provides kernel-modules-core-uname-r = 6.6.7-200.anzigotest.fc39.x86_64 needed by kernel-6.6.7-200.anzigotest.fc39.x86_64 from u/commandline
  • nothing provides kernel-modules-uname-r = 6.6.7-200.anzigotest.fc39.x86_64 needed by kernel-6.6.7-200.anzigotest.fc39.x86_64 from u/commandline
    (try to add ‘–skip-broken’ to skip uninstallable packages)

Maybe some can point me in the right direction? Thanks.

The kernel install from fedora includes several packages.

Installing:
 kernel                                          x86_64         6.6.14-200.fc39                         updates               155 k
 kernel-core                                     x86_64         6.6.14-200.fc39                         updates                16 M
 kernel-modules                                  x86_64         6.6.14-200.fc39                         updates                58 M
 kernel-modules-core                             x86_64         6.6.14-200.fc39                         updates                32 M

and all are required when doing an update on my system.
The kernel package is a meta package that identifies the other packages that are part of that kernel version to be installed.

Your installation must provide all the needed pieces and should include the requirements in the rpm specs.

Note that kernel 6.6.7 is not available in the fedora or fedora updates repos so you would have to get the needed packages from koji or elsewhere to provide the complete set of packages.