<p>It's relatively painless </p>

<pre><code>sudo apt-add-repository add-repository
sudo apt-get update
sudo apt-get install bitcoin-qt
</code></pre>

<p>How you get rid of the old copy depends on how it was installed, if it was a default install this will probably get rid of that anyway. </p>

CC BY-SA 3.0
2014-03-09T20:05:06.130Z
It seems that something is missing from the first line.
Nate Eldredge
CC BY-SA 3.0
2013-12-09T13:52:51.333Z
2013-12-09T13:52:51.333Z
dirvine
<p>This could be found by searching on google and using couple of different queries, nevertheless. Here we go :</p>

<pre><code>sudo apt-get upgrade
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install autotools-dev
sudo apt-get install autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libdb5.1-dev
sudo apt-get install libdb5.1++-dev
sudo apt-get install libminiupnpc-dev
</code></pre>

<p>download berkeley db </p>

<pre><code>wget http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
</code></pre>

<p>unpack </p>

<pre><code>tar -xzvf db-6.0.20.tar.gz
</code></pre>

<p>now build berkeley db </p>

<pre><code>../dist/configure --enable-cxx
</code></pre>

<p>once the process completed</p>

<pre><code>make
</code></pre>

<p>and then </p>

<pre><code>make install
</code></pre>

<p>now download bitcoin repo from github</p>

<p>if you do not have git installed install it by </p>

<pre><code>apt-get install git
</code></pre>

<p>then run</p>

<pre><code>git clone git://github.com/bitcoin/bitcoin
</code></pre>

<p>cd bitcoin</p>

<pre><code>./autogen.sh
</code></pre>

<p>let it complete</p>

<pre><code>./configure
</code></pre>

<p>let it complete </p>

<pre><code>make
</code></pre>

<p>now you should have bitcoind in the src folder copy that to usr/bin folder</p>

CC BY-SA 3.0
2014-03-09T20:42:30.913Z
2014-03-09T20:42:30.913Z
Khan Shahrukh
<pre><code> sudo apt-get update
 sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb5.1-                                      f    dev libdb5.1++-dev libgtk2.0-dev

 git clone https://github.com/bitcoin/bitcoin.git
 cd bitcoin/src

 make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind



 USE_UPNP=1 : build but enable by default
 strip bitcoind
</code></pre>

<p>Then run it with </p>

<pre><code> bitcoind
</code></pre>

CC BY-SA 3.0
2014-02-07T16:28:29.947Z
Also you need to add an rpc username and password to `~/.bitcoin/bitcoin.conf`
SimplePi
CC BY-SA 3.0
2015-09-30T01:59:49.267Z
Note this build system has changed, there's better documentation in `build-unix.md` in the Bitcoin Core repository.
Claris
CC BY-SA 3.0
2014-02-07T16:25:29.370Z
2014-02-07T16:25:29.370Z
SimplePi
<p>What command do I use to get the latest bitcoin package under Ubuntu desktop 12.04 LTS?</p>

<p>Also, what needs to be done to uninstall previous versions?</p>

<bitcoind><bitcoin-core><ubuntu>
Ubuntu command to download https://launchpad.net/~bitcoin/+archive/bitcoin/+packages
Wizard Of Ozzie
# Ubuntu command to download https://launchpad.net/~bitcoin/+archive/bitcoin/+packages

(Asked by: username_0 on 2013-12-09)

What command do I use to get the latest bitcoin package under Ubuntu desktop 12.04 LTS?

Also, what needs to be done to uninstall previous versions?

**Tags:** bitcoind, bitcoin-core, ubuntu


---

## 3 answers

### Answer by username_1 on 2013-12-09. Score: 1

It's relatively painless

```
sudo apt-add-repository add-repository
sudo apt-get update
sudo apt-get install bitcoin-qt

```

How you get rid of the old copy depends on how it was installed, if it was a default install this will probably get rid of that anyway.

> **Comments:**
> **username_2**: It seems that something is missing from the first line.  

---

### Answer by username_3 on 2014-03-09. Score: 1

This could be found by searching on google and using couple of different queries, nevertheless. Here we go :

```
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install autotools-dev
sudo apt-get install autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libdb5.1-dev
sudo apt-get install libdb5.1++-dev
sudo apt-get install libminiupnpc-dev

```

download berkeley db

```
wget http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz

```

unpack

```
tar -xzvf db-6.0.20.tar.gz

```

now build berkeley db

```
../dist/configure --enable-cxx

```

once the process completed

```
make

```

and then

```
make install

```

now download bitcoin repo from github

if you do not have git installed install it by

```
apt-get install git

```

then run

```
git clone git://github.com/bitcoin/bitcoin

```

cd bitcoin

```
./autogen.sh

```

let it complete

```
./configure

```

let it complete

```
make

```

now you should have bitcoind in the src folder copy that to usr/bin folder


---

### Answer by username_4 on 2014-02-07. Score: 0

```
 sudo apt-get update
 sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb5.1-                                      f    dev libdb5.1++-dev libgtk2.0-dev

 git clone https://github.com/bitcoin/bitcoin.git
 cd bitcoin/src

 make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind

 USE_UPNP=1 : build but enable by default
 strip bitcoind

```

Then run it with

```
 bitcoind

```

> **Comments:**
> **username_4**: Also you need to add an rpc username and password to `~/.bitcoin/bitcoin.conf`  
> **username_5**: Note this build system has changed, there's better documentation in `build-unix.md` in the Bitcoin Core repository.  

---

