I inadvertently ran the following command in AWS EC2 Lightsail instance
rpm --nodeps -e openssl-1.0.2k-16.150.amzn1.x86_64
and ever since I am unable to run any yum commands
[root@ip-172-26-3-161 abc]# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libssl.so.10: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.16 (default, Oct 14 2019, 21:26:56)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Any pointers on how to recover from this