Hello !
After Bazel 6.0.0, the visibility of @bazel_tools//tools/build_defs/pkg:archive was removed, which results in the following error:
in py_binary rule @io_bazel_rules_container_rpm//rpm:install_rpms: target '@bazel_tools//tools/build_defs/pkg:archive' is not visible from target '@io_bazel_rules_container_rpm//rpm:install_rpms'. Check the visibility declaration of the former target if you think the dependency is legitimate
The dependency on @bazel_tools//tools/build_defs/pkg:archive declared in rules_container_rpm/rpm/BUILD is not actually used. It is recommended to remove this dependency.