I'm trying to install postgis on an Amazon EC2 instance, the instance is running Red Hat, and by following this tutorial: http://wiki.postgresql.org/wiki/YUM_Installation#Configure_your_YUM_repository .
I should append exclude=postgresql*
to /etc/yum/pluginconf.d/rhnplugin.conf
,
but the file does not exist! What I have under /etc/yum/pluginconf.d
is:
- priorities.conf
- update-motd.conf
- upgrade-helper.conf
What should I do?
Best Answer
As far as i can see the exclude line is designed so that it will stop postgres installation from the official repositories and instead pull it from the postgis ones.
As such just find where your repo configuration is and add the lines there.
If you are using the Amazon provided AMI (Amazon Linux) it is in fact based on fedora and not rhel.
If it is indeed rhel just install yum-rhn-plugin and you should have the file.