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.
https://github.com/EngineeredVirus/CentOS6-Repository-Fix

Hamid has more than 19 years of professional software development experience and has been involved with PostgreSQL for more than 8 years now. He was part of EnterpriseDB and managed PostgreSQL official installers for Windows, Linux and MacOS. Hamid has recently joined HighGo Software Inc. as Senior DevOps and Database Architect.
Recent Comments