We commonly know that system updates will fix the kernel defects that have been discovered or not previously disclosed, to make the OS more secure.

However, what if I accidentally deleted some kernel files, will a new system update recovers the kernel files I deleted?

  • Do you precisely know which kernel files you accidentally removed? – dan Mar 17 '15 at 0:25
  • Actually, I am learning Operating System course, this question just came in my mind. I am thinking about in case kernel is compromised, how kernel can be recovered. @danielAzuelos – Spectral Mar 17 '15 at 0:29
  • 1
    This is a pretty good and difficult question. I tried to answer it on this other question: apple.stackexchange.com/a/177055/22003 . – dan Mar 17 '15 at 1:23

System updates (on any system) only modify targeted files which need improvment or removal.

They might accidentally repair a file you have damaged. They might also accidentally damage a file you have fixed. But this isn't their target.

A full install will of course reinstall any file you removed.

| improve this answer | |
  • How about prestigious anti-virus software? Will that recover the kernels (recover modified kernel files), maybe? – Spectral Mar 16 '15 at 22:53
  • 1
    Not at all! This is none of their business. They don't have a database of all the correct versions of kernel files. The operating system editors have already some difficulties to maintain such a database due to the sustained rythm at which they blitz new versions and fixes. – dan Mar 17 '15 at 0:24
  • So, if my kernel is compromised, the only option is to back up the whole data, and reinstalled the operating system? – Spectral Mar 17 '15 at 0:26
  • If your kernel is compromised, don't do any backup :(. – dan Mar 17 '15 at 1:20

Most likely not. They may be a completely new file, but in general updates are just patches to the already existing file.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .