As was said, OSX will run scripts periodically to maintain itself. I just learned about a program called Yasu that will let you run those scripts on demand
You can also do it directly from the Terminal, with the "periodic" command (for example, "sudo periodic daily"). However, I would advise just letting the system run them itself.