Say is alert alert, but accidentally or the important library or instructions mistakenly deleted, if mistakenly deleted, how should be restored?
First, the mistaken deletion of the library libc.so.6
Take Centos7 as an example, first enter the rescue mode, the Boot interface press ESC, select the CD-ROM boot, CD drive
Then select troubleshooting
Then enter rescue mode
Point to enter after point 1, enter the following interface
Enter cp/lib64/libc.so.6/mnt/sysimage/lib64 after carriage return
At this time/lib64 is the rescue mode directory,/MNT/SYSIMAGE/LIB64 is the real/lib64 directory in the system
Exit exits after closing.
Second, mistakenly delete the command rpm
Or just follow the way to enter the rescue mode after press ENTER 1, enter the following interface input below instructions,--root=/mnt/sysimage meaning to follow the package to the root directory in/mnt/sysimage environment,--replacepkgs for forced replacement installation Exit Rescue mode after installation is complete
Research on rescue mode in Linux environment-repairing deleted library files or commands