See <a href="https:&#x2F;&#x2F;wiki.debian.org&#x2F;ReproducibleBuilds&#x2F;Howto" rel="nofollow">https:&#x2F;&#x2F;wiki.debian.org&#x2F;ReproducibleBuilds&#x2F;Howto</a><p>You would probably need to pass in an &quot;-frandom-seed&quot; option and make sure your environment is the same, but I would imagine you can get that to give you a deterministic output fairly easily.<p>Most of the difficulty comes in the packaging, where you need to make sure that files enter the archive with the same timestamps&#x2F;permissions, and in the same order.