As part of updating the SDK in #37192, we had to add stop-gap workarounds to eng/docker/rhel.Dockerfile and src/Installers/Rpm/Directory.Build.targets to allow the build to succeed on a CentOS 7 image. We want to eventually switch to an official image that supports building RPM packages without these hacks. This is a tracking issue to remove these workarounds.
Things to change as part of this undo:
a) Use an updated base image
b) Remove hacks to uninstall / install ruby
c) Changes made to src/Installers/Rpm/Directory.Build.targets as part of the PR