Installations
Installing GO
cd $HOME
sudo rm -rf /usr/local/go && \
curl -Ls https://go.dev/dl/go1.20.5.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version
Installing Binary
example using Planq Binary
# clone & build cosmprund repo
git clone https://github.com/binaryholdings/cosmprund
cd cosmprund
make install
# stop daemon/cosmovisor
sudo systemctl stop planqd
# run cosmprund
cosmos-pruner prune ~/.planqd/data --cosmos-sdk=false
If had an error when compiling
cmd/pruner.go:13:2: cannot find module providing package github.com/cosmos/cosmos-sdk/x/consensus/types: import lookup disabled by -mod=readonly
Here's to solve
# clone & build cosmprund repo
git clone https://github.com/binaryholdings/cosmprund
cd cosmprund
git reset --hard d3bf3d8
make install
# stop daemon/cosmovisor
sudo systemctl stop planqd
# run cosmprund
cosmos-pruner prune ~/.planqd/data --cosmos-sdk=false