I am in a strange situation. I have a web server machine with CentOS release 6.6 (Final) installed with nginx, mysql, ISPConfig and Webmin which is working smoothly. Recently I noticed when using phpMyAdmin that a message was popping up saying that there is a newer version of phpMyAdmin. Webmin did not report any updates available, so I run "yum update"
receiving many errors like:
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. $releasever is not a valid release or hasnt been released yet/
After trying some configuration and did a "yum clean all"
, restarting the server, I am able to run yum again, but now yum database seems like it has been erased or something. When I run "yum list installed"
I get absolutely nothing! When I run "yum update"
I get "No Packages marked for Update"
. All repos are enabled. All the packages are installed, but now yum db has nothing inside. For example when I run "yum install phpMyAdmin"
I get:
Installing:
phpMyAdmin noarch 4.3.7-1.el6.remi remi 4.5 M
Installing for dependencies:
MAKEDEV x86_64 3.24-6.el6 base 89 k
apr x86_64 1.3.9-5.el6_2 base 123 k
apr-util x86_64 1.3.9-3.el6_0.1 base 87 k
apr-util-ldap x86_64 1.3.9-3.el6_0.1 base 15 k
audit-libs x86_64 2.3.7-5.el6 base 71 k
basesystem noarch 10.0-4.el6 base 4.7 k
bash x86_64 4.1.2-29.el6 base 907 k
binutils x86_64 2.20.51.0.2-5.42.el6 base 2.8 M
......
Transaction Summary
===========================
Install 158 Package(s)
Total download size: 98 M
Installed size: 346 M
Is this ok [y/N]:
which means everything yum has installed so far is now wiped out from the yum db but is still installed.
Is there a way to restore yum database or to make yum detect which packages the server has installed?