How can I reproduce the same binary as bitcoin.org or bitcoincore.org? I'm hoping that someone can tell me how to get the same binary that we see on bitcoincore.org/bitcoin.org.
I tried using Ubuntu 20.04
git clone https://github.com/bitcoin/bitcoin
git checkout v0.20.1
sudo apt-get update
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 -y
sudo apt-get install libevent-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev -y
./autogen.sh
./configure --disable-wallet
make
make install

Extra details (git commit I'm going off of)
 git log
commit 7ff64311bee570874c4f0dfa18f518552188df08 (HEAD -&gt; 20.1, tag: v0.20.1)
Author: Wladimir J. van der Laan &lt;laanwj@protonmail.com&gt;
Date:   Fri Jul 31 14:01:56 2020 +0200


produces bitcoind: d46f9ca67562129cb2f0d7ed7e0ae576ab06e616d98d28c2a262d82356f9d87b

bitcoincore.org link I'm going off of:
https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-x86_64-linux-gnu.tar.gz
produces bitcoind: 4ec74161b2a90293926ae8e20a2efbe952bd23b53aeebf051e6a6285ace18271
I was hoping that someone could tell me how to properly configure/setup my environment to produce the same binary that we see packaged nicely in the tarball on these websites.
The binary files aren't even close in size…
from tarball bitcoind size:
10312344 (10 MB)
from building from scratch bitcoind size:
192814984 (192 MB)
How do I make the super sleek and sexy 10 MB version?
Thanks!
The challenge with creating reproducible builds is that you need to ensure that the build process matches exactly across different operating systems and different architectures. Bitcoin uses Gitian, a deterministic build process to achieve that.
Bitcoin Core provides the configuration and build instructions for various operating systems in the /contrib/gitian-descriptors directory in the Bitcoin source code.
For Linux you would use this gitian-linux.yml.