> "-e" said the package wasn't installed. "-i" said the package was
> already installed.
Note that -e and -i use different syntax.
rpm -e packagename
rpm -i filename
the package name is usually something like "postgres" or
"postgres-server" and the file name is something like
"postgres-7.0.3-2.i386.rpm"