To remove any existing packages, do:
# rpm -e openacs
# rpm -e postgresql
# rpm -e apache
If it complains that you can't remove a package because others depend on it (for example, you can't remove postgresql because postgresql-server depends on it), then remove the pieces that depend on the package that you are trying to remove.
A pain, but rpm does this for your own protection 😊