摘要 |
A method and an apparatus for repairing a system file are provided. The computer-implemented method for repairing a system file, comprises: detecting, by a processor, a corrupted system file in an operating system; sending identification information of the operating system and an identifier of the corrupted system file to a server; receiving an integrity identifier of an intact system file to be used in repairing the corrupted system file, wherein the intact system file is determined by the server according to the identification information of the operating system and the identifier of the corrupted system file; verifying, by the processor, the received integrity identifier with a locally stored integrity identifier of the corrupted system file; and if the received integrity identifier passes the verification, obtaining, from the server, the intact system file corresponding to the verified integrity identifier and repairing the corrupted system file with the obtained intact system file. |