In a word - OnyX, from here Titanium Software. You don't say which OS you're using, but OnyX covers the field from Jaguar onwards. Use OnyX to repair permissions, run maintenance scripts, remove duplicate files, optimize (update) the system; plus various other functions.
Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.