Release package is noarch in rocky linux and but arch specific in redhat

The package rocky-release (SPECS/rocky-release.spec · r9s · staging / src / rocky-release · GitLab) mirrors the behaviour of centos-stream (centos-stream-release.spec · c9s · Red Hat / centos-stream / rpms / centos-release · GitLab) in that it is built as a noarch rpm.

My question is why does this vary from rhel8/9 behaviour where redhat-release is actually built for each system architecture differently. Though I also feel that these packages should ideally be noarch as they do not install binaries but version files and certs.

Hoping if anyone has any insights into this area. Reason I ask is that there a closed source application which derives architecture from architecture information of rpm which installs the version files (eg /etc/redhat-release)

Thanks

Red Hat likely has their reasons for making their packages arch-full. What that reason is is unclear. From our perspective, there isn’t a reason to have these packages to be specific per arch. There’s nothing special per arch, as far as we can tell, that a release package is going to provide. From my perspective, enforcing an arch-full package when there are no arch specific binaries or libraries being provided does not make sense.

This is, in my opinion, a fault of the software vendor. There are much, much better ways to derive the architecture of the system that doesn’t rely on a release package’s arch. I recommend reaching out to your third party vendor’s support and bringing this up to them.

3 Likes

I agree that there are far better and correct ways to extract system architecture. Will work with the vendor.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.