How do I go about installing a Bitcoin daemon in CentOS Linux?

3

I am trying to setup a Drupal e-commerce solution with a payment gateway of accepting Bitcoins during checkout, but I need a bitcoin daemon installed. How do I go about installing the Bitcoin daemon in my CentOS installation?

Is there a step-by-step guide on what I need to type to install this? It would be great if it can be installed via a package manager in CentOS. apt-get doesn't seem to work for me.

Patoshi パトシ

Posted 2013-05-01T18:37:20.907

Reputation: 8 911

You'll want to find a yum repository that has bitcoind in it, as CentOS uses YUM and not APT.Colin Dean 2013-05-01T18:52:56.553

If you would like to build from source: http://bitcoin.stackexchange.com/a/30106/19021

averageradical 2014-08-18T20:32:18.557

Answers

3

I host two bitcoind RPMs (i686, x86_64) on my website which will most likely work fine for you, as they're built for CentOS 6.4. Run this command to install bitcoind :

rpm -ivh http://tvdw.eu/bitcoin-0.8.1-1.el6.`uname -m`.rpm

If you want to download them manually, the files are:

i686:   http://tvdw.eu/bitcoin-0.8.1-1.el6.i686.rpm
MD5:    5be52618594a3eaded19052197c2f6ed

x86_64: http://tvdw.eu/bitcoin-0.8.1-1.el6.x86_64.rpm
MD5:    49ba4acbf9744e96bf12342888bc347a

The packages are unsigned, so install these at your own risk (aka: some level of trust is required here).

[Edit] This is the bitcoin.spec file I use to build these packages :

Name:           bitcoin
Version:        0.8.1
Release:        1%{?dist}
Summary:        bitcoin

License:        GPL
URL:            http://bitcoin.org
Source0:        http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-%{version}/bitcoin-%{version}-linux.tar.gz

%description
bitcoin

%package qt
Summary:        bitcoin-qt
%description qt
bitcoin-qt


%prep
%setup -q -n bitcoin-%{version}-linux


%build


%install
mkdir -p %{buildroot}%{_bindir}
%ifarch x86_64
cp -R bin/64/* %{buildroot}%{_bindir}
%endif
%ifarch i686
cp -R bin/32/* %{buildroot}%{_bindir}
%endif


%clean
rm -rf %{buildroot}


%files
%doc README COPYING
/usr/bin/bitcoind

%files qt
/usr/bin/bitcoin-qt


%changelog

There's no actual compilation involved, it just puts the files in the right locations and wraps it in a nice little RPM.

Tom van der Woerdt

Posted 2013-05-01T18:37:20.907

Reputation: 2 397

2there is no way to install the same ones from the main bitcoin site? Yes a level of trust is indeed needed. but for the sake of the paranoid user, how can one do it themselves.Patoshi パトシ 2013-05-02T19:35:58.707

@duckx I updated my answer with the bitcoin.spec file I use to build the packages.Tom van der Woerdt 2013-05-02T20:10:42.630

1

You can also try this setup, by another fellow StackExchange member.

Or you might want to take the easier route and use a Bitcoin Payment Gateway.

Gaia

Posted 2013-05-01T18:37:20.907

Reputation: 423