How important is it to check hashes or PGP/ASC signatures for file integrity?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I think it is very important to check the integrity of all files. I've often found corrupt or partial downloads, and these could cause problems if the bad download is not detected. For software downloads, in some cases the problem will manifest itself in other ways early enough, and the installation will fail. In other cases the installation may succeed, but the software may behave in unexpected behaviour, which is very difficult / impossible to troubleshoot.
How important is it check file integrity when downloading a file from the Internet?
Only as important as the integrity of your system, data and time are to you.
Quote:
Originally Posted by NotionCommotion
Are there some files which are more important to check than others? For instance, downloading initial Linux operating system, downloading Apache, etc?
No.
Quote:
Originally Posted by NotionCommotion
Also, does checking MD5 or SHA256 hashes perform the same basic task as verifying PGP/ASC signatures?
Thank you
Not exactly. Checking the hashes checks the integrity of the contents of the file. Checking PGP primarily verifies that the file came from the expected source (but also validates file integrity).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.