Verify a checksum in OS X
Edited by Rich, Eng, Nuance
The OS X operating system offers two built-in methods to verify the checksum of a downloaded file. A checksum is a sequence of numbers and letters that are derived from a newly created file. The checksum of a download can be compared to the original file to determine if data is missing. Missing data corrupts files, and a corrupt file will not run correctly. Checking the checksum before working with large downloaded files can reduce the time spent troubleshooting.
- 1Return to the web page you downloaded the file from. The site will list the SHA-1 or MD5 value of the file. Copy this value to a blank text document.Find the checksum.
- Open Terminal. For a shortcut. Hold down the "Command" key and press "Space" to open Spotlight.
- Search for terminal in spotlight
- Type openssl md5 in terminal. Do not press enter yet.
- Enter file path. At this point you can drag and drop the file into the terminal to add the file path automatically. Otherwise, you need to type the entire path to the file manually.
- Interpreting output. The openssl md5 command will output the following: MD5(filename)= value.
- Open Terminal. Follow the instructions above to open the terminal window.
- Type openssl sha1 in the terminal window. Do not press enter yet.
- Enter the file path. Drag and drop the file into the terminal window to copy the file path into the command. This will save you an immense amount of time.
- Interpreting the output. Output will read: SHA1(filename)= value.
- 4After either operation:Comparing checksum.
- Copy the checksum into the same text document as the first step.
- Copy the value directly underneath the initial value.
- Compare the two values.
- If they are the same then the file downloaded correctly.
Tips Tricks & Warnings
- Apple Official Downloads. Official downloads from Apple are automatically checked for SHA-1 verification by the system. No need to perform the check yourself.
If you have problems with any of the steps in this article, please ask a question for more help, or post in the comments section below.
Categories : Operating System
Recent edits by: Eng, Rich