Equivalent to "dnf provides" on atomic desktops?

On non-atomic desktops, I’m used to typing dnf provides /path/to/file to find out which RPM package owns a specific file or has created it.

Is there a way to do the same with the atomic variants?

For me personally, I just use the dnf within a toolbox.

What about rpm -qf /path/to/file?

This is even nicer than dnf provides if the package is installed – but it won’t work if the package is not installed.