Installing PostgreSQL on CentOS6 Post EOL

Enterprise PostgreSQL Solutions

Comments are off

Installing PostgreSQL on CentOS6 Post EOL

If you’ve seen the following error, you know that your CentOS6 has reached end of life (EOL).

Loaded plugins: fastestmirror, ovl
Setting up Install Process
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

I found this out a couple of days ago. So today I decided to fix it.

The Fix

Fortunately, CentOS6 does keep vault repositories. So, a simple bash script that moves all the current unusable CentOS6 repositories to another location, deploys the yum repository based on your CentOS minor version and voilĂ .

Jump over to the git repository and pull the bash script, and continue using PostgreSQL and other software on CentOS6.