Step 1:
Download file from official site or repository and ensure to get the corresponding SHA checksum
For reference, we will be using the following
Downloaded filename : name_of_downloaded_file
Downloaded file's checksum : sha_checksum_of_downloaded_file
Step 2:
Open Terminal
Step 3:
Run the following command in the Terminal from the directory where file was downloaded
> echo "sha_checksum_of_downloaded_file" *name_of_downloaded_file | shasum -a 256 --check
Step 4:
Check output or response after executing above command. You should get similar output as below
name_of_downloaded_file: OK
Step 5: Done.
Example (taken from Ubuntu site - https://ubuntu.com/download/server)
> echo "f8e3086f3cea0fb3fefb29937ab5ed9d19e767079633960ccb50e76153effc98 *ubuntu-20.04.3-live-server-amd64.iso" | shasum -a 256 --check
ubuntu-20.04.3-live-server-amd64.iso: OK
No comments:
Post a Comment