Clone the bitcoin core repo and switch to a stable release git clone https://github.com/bitcoin/bitcoin.git cd bitcoin git checkout 24.x Compile bitcoin protocol network make clean