How to add a local rpm to a custom image?

I have a custom image where I have installed some additional packages from Fedora and COPR.

Now I have downloaded a printer driver rpm package which I did not find in the Fedora package list or on COPR.

Question: Where do I need to put that package so that I can install it in my build_files/build.sh?

I found what I can do.

  • put the rpm file in build_files/
  • in build.sh add dnf5 install -y /ctx/some.rpm