<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Developer Pod - Medium]]></title>
        <description><![CDATA[Bringing the on ground stats and practices for the community - Medium]]></description>
        <link>https://medium.com/developer-pod?source=rss----22caf144c41a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Developer Pod - Medium</title>
            <link>https://medium.com/developer-pod?source=rss----22caf144c41a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:22:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/developer-pod" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Security: Verifying integrity of package/file in Linux]]></title>
            <link>https://medium.com/developer-pod/verifying-genuineness-of-downloaded-package-or-file-in-linux-1a0ffd100216?source=rss----22caf144c41a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1a0ffd100216</guid>
            <category><![CDATA[shasum]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[checksums]]></category>
            <category><![CDATA[verify]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Omkar Deshpande]]></dc:creator>
            <pubDate>Sun, 23 May 2021 18:34:43 GMT</pubDate>
            <atom:updated>2021-05-23T18:36:18.715Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why</h3><p>Checking the genuineness of downloaded package and file has become crucial now more than ever. There are many reasons to check that before you actually actually open / install / execute it in your system or server. Unknowingly, one might end up installing malicious version of the package that might have been introduced during the transfer of file from website to one’s local, or local to development system or development to production system because of the compromised network, that you aren’t aware of OR someone was successful in getting access to your file system and replaced that piece of package with his own version.</p><p>It is thus necessary to be cautious for such scenarios where the original file is tampered with.</p><h3>How</h3><p>Let’s take an example of downloading Elasticsearch package from the official page: <a href="https://www.elastic.co/downloads/elasticsearch">https://www.elastic.co/downloads/elasticsearch</a></p><ol><li>Download the Elasticsearch package.</li></ol><pre>wget <a href="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.12.1-arm64.deb">https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.12.1-arm64.deb</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdSBZR1RSSMmOVECGkTIBQ.png" /></figure><p>2. On the same link, corresponding to the download link, there’s a <strong>sha</strong> provided by the organisation. On hovering on it, we see that it is SHA512. Click on it to download and view the SHA Hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d_zFDUB-wEDx2bwQEOilzw.jpeg" /></figure><p>OR download using wget</p><pre>wget <a href="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.12.1-arm64.deb.sha512">https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.12.1-arm64.deb.sha512</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3iulU6kWlv2nsrxGFEC-A.png" /></figure><p>3. Now, generate SHA512 for the downloaded package and compare it with the one in .sha512 file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIdquTRhTYkqZ6uCJCd2Pw.png" /></figure><p>Generate File SHA512:</p><pre>shasum -a 512 elasticsearch-7.12.1-arm64.deb</pre><p>Read SHA512 from the file:</p><pre>cat elasticsearch-7.12.1-arm64.deb.sha512</pre><p>To check for any difference in output:</p><pre>diff &lt;(shasum -a 512 elasticsearch-7.12.1-arm64.deb) &lt;(cat elasticsearch-7.12.1-arm64.deb.sha512)</pre><p>If there’s NO difference, the above command will return NO output.</p><p>The checksum will differ if there’s even a bit difference in the file content, which will confirm that the current file is not the one that is expected to be, possible red flag.</p><p>Other prominent hashing mechanism that can be used are:</p><ul><li>md5sum</li><li>SHA-256</li></ul><p>Reference and Resources:</p><ul><li><a href="https://www.commandlinux.com/man-page/man1/shasum.1.html">shasum</a></li><li><a href="https://www.elastic.co/downloads/elasticsearch">Elasticsearch</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a0ffd100216" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-pod/verifying-genuineness-of-downloaded-package-or-file-in-linux-1a0ffd100216">Security: Verifying integrity of package/file in Linux</a> was originally published in <a href="https://medium.com/developer-pod">Developer Pod</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>