I have accidentally removed libselinux on centos 7.4 and am unable to install it again and all commands fail. How do i recover?
ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
yum install libselinux-2.5-12.el7.x86_64 There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
libselinux.so.1: cannot open shared object file: No such file or directory
I do have files as below.
[root@localhost lib64]# locate libselinux. /usr/lib/tmpfiles.d/libselinux.conf /usr/lib64/libselinux.so.1